Question: What is the time complexity of inserting an element into a binary search tree (BST) in the average case?
Options:
Correct Answer: O(log n)
Solution:
Inserting an element into a binary search tree (BST) has an average-case time complexity of O(log n).