What is the time complexity of binary search in a sorted array?

a) O(n)

b) O(log n)

c) O(n^2)

d) O(1)

Leave a Comment