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.
5368 Points
3092 Points
1924 Points
1898 Points
1874 Points
1454 Points
1390 Points
1314 Points
1136 Points
1124 Points
Gatecse