What is the time complexity of searching for an element in a binary search…

PYQ CoCubes 2025

What is the time complexity of searching for an element in a binary search tree, assuming that the tree is balanced?

  1. A.

    O(1)

  2. B.

    O(log n)

  3. C.

    O(n)

  4. D.

    O(n log n)

Attempted by 588 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…