in DS
750 views
1 vote
1 vote

here what to do first as FIZZA and IMRAN both are unbalanced than either to do RR rotation from FIZZA-IMRAN-NAVEEN or RL rotation from IMRAN-NAVEEN-LOVELY

in DS
by
750 views

2 Comments

we start rotation from bottom so first RL rotation from IMRAN-NAVEEN-LOVELY  will be applied then if still tree is unbalanced then FIZZA-IMRAN-NAVEEN  rotation is applied.
2
2
Yes strart will from bottom level
0
0

1 Answer

0 votes
0 votes
We apply RL rotaion In IMRAN-NAVEEN-LOVELY after that we need to apply RR rotaion on that then it become balance.

Related questions