Classic Binary Search
Check the middle and safely discard one half.
- Binary Search Easy · Discard half each time
- Sqrt(x) Easy · Search possible roots
- Search Insert Position Easy · Find the first safe position
- Search in Rotated Sorted Array Medium · Find the sorted half
- Find Minimum in Rotated Sorted Array Medium · Compare middle with the right edge
- Find Peak Element Medium · Follow the uphill side