1.

The average depth of a binary tree is given as?(a) O(N)(b) O(log N)(c) O(M log N)(d) O(√N)This question is from Trees topic in section Trees of Data Structures & Algorithms IThis question was posed to me during an interview.

Answer»

Correct choice is (d) O(√N)

The BEST I can EXPLAIN: The average depth of a BINARY expression TREE is mathematically found to be O(√N).



Discussion

No Comment Found

Related InterviewSolutions