1.

What is the minimum height for a binary search tree with 60 nodes?(a) 1(b) 3(c) 4(d) 2I had been asked this question during an online exam.My question is from Tree Traversal in division Trees of Discrete Mathematics

Answer»

Right option is (d) 2

The explanation: If there are k NODES in a binary TREE, maximum height of that tree should be k-1, and MINIMUM height should be FLOOR(log2k). By using the FORMULA, minimum height must be 2 when there are 60 nodes in a tree.



Discussion

No Comment Found

Related InterviewSolutions