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