Question: What is the time complexity of inserting an element into a binary search tree in the average case?
Options:
Correct Answer: O(log n)
Solution:
In the average case, inserting an element into a binary search tree takes O(log n) time, assuming the tree is balanced.