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