Ten checks, not a thousand.
transcript
A thousand builds. One of them broke the tests. Each check takes six minutes. Checking every build takes a hundred hours. That is more than four days of waiting. There is a faster way.
Builds pass, then fail. The break stays in the code. So the results flip once. One check can tell you about many builds. We want the first failing build.
Check the build in the middle. Build six passes. So builds zero to six pass too. Seven builds are gone, in one check. A failing middle works the same way, on the other side.
Check the middle of what is left. Cut away half again. Each check halves the builds in question. Keep going until no build is left in question. Where the window closed is the first failure.
A thousand builds need ten checks. A million need twenty. A billion need thirty. Ten checks is one hour, not a hundred.
Check the middle, and cut away half. Full breakdown in the lecture.