Back to Patterns
5
Binary Search
Binary Search is a highly efficient algorithm for finding an item from a sorted list of items. It works by repeatedly dividing in half the portion of the list that could contain the item, reducing the time complexity to O(log n).
Problems (9)
- Binary SearchDifficulty: Easy
- Find Minimum in Rotated Sorted ArrayDifficulty: Medium
- Find Peak ElementDifficulty: Medium
- Koko Eating BananasDifficulty: Medium
- Median of Two Sorted ArraysDifficulty: Hard
- Search a 2D MatrixDifficulty: Medium
- Search in Rotated Sorted ArrayDifficulty: Medium
- Search Insert PositionDifficulty: Easy
- Time Based Key-Value StoreDifficulty: Medium