Q. Given an empty AVL tree, how would you construct AVL tree when a set of numbers are given without performing any rotations?

  • (A) just build the tree with the given input
  • (B) find the median of the set of elements given, make it as root and construct the tree
  • (C) use trial and error
  • (D) use dynamic programming to build the tree
πŸ’¬ Discuss
βœ… Correct Answer: (B) find the median of the set of elements given, make it as root and construct the tree

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
1008
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate