Question

In an AVL tree, after inserting a new node, node X becomes unbalanced with a balance factor of +2 (right subtree taller), and X's right child also has a balance factor of +1 (also right-heavy). Which rotation should be performed to restore balance at X?

A Single Right Rotation
B Left-Right (double) Rotation
C Right-Left (double) Rotation
D Single Left Rotation
E No rotation is needed, since a balance factor of +2 is still considered balanced
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)