Find the first version that broke everything using binary search.
Constraints
Example
>>> find_first_bad([False, False, True, True]) 2 >>> find_first_bad([True, True, True]) 0 >>> find_first_bad([False, False, False]) -1 >>> find_first_bad([]) -1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints