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

  • AO(1)
  • BO(n)
  • CO(log n)
  • DNone of these
Show answerHide answer

Correct answer C

In a balanced binary search tree, the height is proportional to log n, ensuring efficient searches. The time complexity is O(log n) as the search halves the tree at each step.