What are we suppose to take?
LR - 2 rotations. RL- 2 rotations.
OR
LR - 1 rotation. RL- 1 rotation.
Kindly Solve and Verify the Total Numbers of Rotations Performed.
@jason,
Use it for visualisation : https://www.cs.usfca.edu/~galles/visualization/AVLtree.html
I am not sir :) ...just an aspirant.
3508 Points
2542 Points
2040 Points
1966 Points
1768 Points
1610 Points
1588 Points
1454 Points
1424 Points
1420 Points
Gatecse
The topics to read :