Question
Given an empty AVL tree, how would you construct AVL tree when a set of numbers are given without performing any rotations?
Answer: Option B
Was this answer helpful ?
Sort the given input, find the median element among them, make it as root and construct left and right subtrees with elements lesser and greater than the median element recursively. this ensures the subtrees differ only by height 1.
Was this answer helpful ?
More Questions on This Topic :
Question 10. What are double and single threaded trees? ....
Submit Solution