Workspace

Binary Search

3 day streakD
All algorithms
BEGINNER · 2 PRACTICE PROBLEMS

Binary Search

Cut the search space. Find the answer.

Learn the pattern Put it into practice
THE CORE IDEA

Binary search

Use a sorted range and halve the possibilities with each comparison.

O(log n)

A good place to practice

Start simple, then build up to the next challenge.

2 problems
SolvedProblemDifficultyTopicAcceptanceBookmark
Binary SearchEasyBinary Search59.1%
Search in Rotated Sorted ArrayMediumBinary Search42.6%

A good place to start

Explore a pattern

A little guidance

Start with a pattern, read through a problem, and mark it solved when the idea clicks. Save anything you want to revisit.

This preview uses sample content. Your bookmarks and solved checkmarks stay in this browser.

Explore the roadmap