Algomorph
Algorithms
Playground
API Docs
Discussions
Sign in
Get started
Algomorph
Binary Search
C++
C
Java
Python
JavaScript
Loading...
Time and Space Complexity
Best Case Time Complexity:
O(1)
Average Case Time Complexity:
O(log n)
Worst Case Time Complexity:
O(log n)
Space Complexity:
O(1)