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).
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).