1.

Balanced binary tree with n items allows the lookup of an item in ____ worst-case time.(a) O(log n)(b) O(nlog 2)(c) O(n)(d) O(1)My enquiry is from Binary Trees in division Binary Trees of Data Structures & Algorithms II had been asked this question in quiz.

Answer»

The CORRECT ANSWER is (a) O(LOG N)

Easiest explanation - Searching an item in balanced binary is fast and worst-case TIME complexity of the search is O(log n).



Discussion

No Comment Found

Related InterviewSolutions