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

TPSC Computer/IT Posts · 2025 · Assistant Programmer · Section D

What is the time complexity for searching an element in a binary search tree (BST) in worst case ?

  1. A.

    O(1)

  2. B.

    O(log n)

  3. C.

    O(n)

  4. D.

    O(n2)

Attempted by 720 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…