Problem 278 · Easy

First Bad Version

Binary search the smallest bad version: if mid is bad, search left; otherwise search right.

Open the interactive visualisation