Question DSA-BST-166
HardThe keys 10, 20, 30, 40, 50 and 25 are inserted in that order into an empty AVL tree. Which key is at the root at the end?
- A.
40
- B.
30
- C.
20
- D.
25
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
The keys 10, 20, 30, 40, 50 and 25 are inserted in that order into an empty AVL tree. Which key is at the root at the end?
40
30
20
25
Sign up free to see the answer and a step-by-step explanation.