Skip to main content

Binary Search Challenge

Pick the true midpoint of the search window each round and eliminate half the array. Miss twice and the hint appears.

binary searchmidpoint reasoninginterval eliminationRead the lesson
How to play
  1. A sorted array and a target are shown, the current window is highlighted.
  2. Click the element you believe is the midpoint (low + high) / 2.
  3. Correct picks eliminate half the window; wrong picks cost accuracy and earn hints.
  4. Some targets don't exist, recognize when the window collapses to prove absence.
level1 / 3window[0, 7]mistakes0score—

target = 6

The highlighted window is where the target can still be. Click the element you think is the midpoint: mid = ⌊(low + high) / 2⌋.

Estimated play time: 3–5 min. Scores feed your local progress, stored only in this browser.