Q. Given an empty AVL tree, how would you construct AVL tree when a set of numbers are givenwithout performing any rotations? (Solved)

1. just build the tree with the given input

2. find the median of the set of elements given, make it as root and construct the tree

3. use trial and error

4. use dynamic programming to build the tree

  • b. find the median of the set of elements given, make it as root and construct the tree
Subscribe Now

Get All Updates & News