In an AVL tree, which rotation(s) is required to fix a Left-Right (LR) imbalance?
16 views
- Single Left Rotation
- Single Right Rotation
- Left Rotation followed by Right Rotation
- Right Rotation followed by Left Rotation (Correct Answer)
Explanation
A Left-Right (LR) imbalance occurs when a node is inserted into the right subtree of the left child. Fixing requires a double rotation: first a left rotation on the left child, then a right rotation on the unbalanced node.