I. problem
given 500 revisions of programs, write a program that will find and return the FIRST bad revision given a isBad(revision i)
function.
II. Code
1 | function isBad( version ){ return version === 0 } |
given 500 revisions of programs, write a program that will find and return the FIRST bad revision given a isBad(revision i)
function.
1 | function isBad( version ){ return version === 0 } |