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.
4704 Points
4004 Points
3738 Points
2966 Points
2278 Points
2212 Points
1814 Points
1788 Points
1444 Points
Gatecse