Question: What is the time complexity of finding the maximum element in a binary search tree?
Options:
Correct Answer: O(log n)
Solution:
Finding the maximum element in a binary search tree involves traversing to the rightmost node, which takes O(log n) time in a balanced tree.