1.

The average depth of a binary tree is given as?(a) O(N)(b) O(√N)(c) O(N^2)(d) O(log N)My query is from Binary Trees topic in chapter Binary Trees of Data Structures & Algorithms IThe question was asked in semester exam.

Answer» CORRECT OPTION is (d) O(log N)

The BEST I can explain: The average depth of a binary tree is given as O(√N). In CASE of a binary search tree, it is O(log N).


Discussion

No Comment Found

Related InterviewSolutions