Binary search

Find the number in few guesses.

How it works

Always guess in the middle of the range.

More exercises in Computational thinking