Algorithms

Binary search

Searching a sorted list by cutting it in half at every step.

Example

To find 70 between 1 and 100: check 50 (higher), then 75 (lower), then 62... You find it in 7 steps.

Test yourself: Binary search

What is an algorithm

Looking up a word in a dictionary by opening in the middle is the same method as…

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.