745 views

1 Answer

1 votes
1 votes
It is also correct while constructing AVL tree you have to take care of balancing factor it should be between (-1,0,1) when BF(balancing factor) is aboe this you have to do rotation either (LL,LR,RR,RL) therfore time complexity will be O(n)

Related questions

1 votes
1 votes
0 answers
1
Chaitanya Kale asked Oct 9, 2022
407 views
Given a skew tree what will be the time complexity to balance the tree? What will be the algorithm for this?
0 votes
0 votes
1 answer
2
Ujjaval251 asked Mar 14, 2023
982 views
S1 : An insertion in an AVL with n nodes requires O(n) rotations.answer is false in answer key,but is guess for 1 insetion its O(1).so for n it will be O(n).tell me if i ...
0 votes
0 votes
0 answers
3
Mayankprakash asked Nov 2, 2018
497 views
Please suggest how to learn AVL rotation in AVL trees and some good practice questions or link would be so much helpfulThanks