Question: What is the time complexity of a binary search algorithm on a sorted array?
Options:
Correct Answer: O(log n)
Solution:
The time complexity of binary search on a sorted array is O(log n) because it repeatedly divides the search interval in half.