Question: What is the time complexity of searching for a value in a binary search tree (BST) with n nodes?
Options:
Correct Answer: O(log n)
Solution:
In a balanced binary search tree, the average time complexity for searching is O(log n), but in the worst case (unbalanced), it can be O(n).