Question: What is the time complexity of searching for an element in a binary search tree (BST) in the average case?
Options:
Correct Answer: O(log n)
Solution:
In a balanced binary search tree, the average time complexity for searching an element is O(log n) because each comparison allows the search to skip about half of the tree.