Algorithms

What is the worst-case time complexity of Binary Search?

Correct answer

B. O(log n)

Explanation

Binary Search repeatedly halves the search space, resulting in O(log n) time.