Skip to main content

Binary Search

Halve the search space each step to find an element or boundary in O(log n).

10 problems 1 Easy 7 Medium 2 Hard

Problems (10)

Problem Link
Binary Search
Search in Rotated Sorted Array
Find Minimum in Rotated Sorted Array
Koko Eating Bananas
Find Peak Element
Time Based Key-Value Store
Search a 2D Matrix
Capacity to Ship Packages Within D Days
Split Array Largest Sum
Median of Two Sorted Arrays

Related Guide

Binary Search on the Answer — The Most Underrated Trick →

Binary search is not just for sorted arrays. The answer-space variant unlocks a whole class of "mini…

Enjoying this free content?

If this saved you time, buying me a coffee keeps new content coming.

Buy me a coffee
Buy me a coffee