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.
7838 Points
2812 Points
2696 Points
2692 Points
2456 Points
2040 Points
1980 Points
1864 Points
1790 Points
1718 Points
Gatecse