If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Old exercise items

Problem

Let's play the guessing game again. The computer will pick a number, and it's your job to guess the number -- but using the exact steps of the binary search algorithm.