10. first bad version
Share
medium - accepted / - tried
Say you have multiple versions of a program, write a program that will find and return the first bad revision given a isBad(version)
function.
Versions after first bad version are supposed to be all bad versions.
notes
- Inputs are all non-negative integers
- if none found, return -1