What is the time complexity of binary search algorithm?

Explanation:

Binary search halves the search space in each step, leading to O(log n) time complexity.

Explore more in Computer Science: