Sobes.tech
Junior

What is the complexity of binary search?

sobes.tech AI

Answer from AI

The complexity of binary search in the worst and average case is O(log n). In the best case — O(1).

What is the complexity of binary search? — Java - sobes.tech