🧠 Drill · Think it through
Guess the secret floor
The problem
Versions 1..n shipped in order, and at some point one bad commit broke the build — every version from that point on is also broken. You have a slow checker isBad(v) and want to find the first broken version. Each check is expensive, so you want to minimize the number of checks.
Don't jump to code. Walk the four questions an expert asks first — you'll build the habit, not just the answer.
1
Restate it
Before anything else — did you read what's actually being asked? Strip the story to the bare goal.
Strip away the story. What are we actually asked to find?