0278. First Bad Version
Description
**Input:** n = 5, bad = 4
**Output:** 4
**Explanation:**
call isBadVersion(3) -> false
call isBadVersion(5) -> true
call isBadVersion(4) -> true
Then 4 is the first bad version.**Input:** n = 1, bad = 1
**Output:** 1ac
Last updated