Question: What is the time complexity of deleting an element from a binary search tree (BST) in the average case?
Options:
Correct Answer: O(log n)
Solution:
In the average case, deleting an element from a balanced binary search tree takes O(log n) time, as it requires finding the element and then restructuring the tree.