Question DSA-BST-144
MediumAn AVL tree has the left subtree height 3 and right subtree height 1 at some node. What happens?
- A.
The tree is rebuilt from scratch
- B.
The node is deleted
- 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
An AVL tree has the left subtree height 3 and right subtree height 1 at some node. What happens?
The tree is rebuilt from scratch
The node is deleted
Sign up free to see the answer and a step-by-step explanation.
Nothing; it is balanced
The node is unbalanced (factor 2) and a rotation is done