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.
8280 Points
5042 Points
4716 Points
4468 Points
4368 Points
4212 Points
4052 Points
3732 Points
3312 Points
3306 Points
Gatecse