Question DSA-BST-164
HardInserting 50, 40, 30 into an empty AVL tree causes which rotation, and what is the new root?
- A.
A left rotation; root 30
- B.
A single right rotation; root 40
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Binary Search Trees question
Inserting 50, 40, 30 into an empty AVL tree causes which rotation, and what is the new root?
A left rotation; root 30
A single right rotation; root 40
Sign up free to see the answer and a step-by-step explanation.
A left-right rotation; root 50
No rotation; root 50