Which of the following is the time complexity of binary search algorithm?

Explanation:

Binary search works by dividing the array in half, so its complexity is O(log n).

Explore more in Computer Science: