Skip to content
RED SAG Skills
medium10 pts · first answer countssorting-and-searching

Calls needed to find the first bad version

You have versions 1 to 2,000, and isBad(v) is false up to some version and true after. Using binary search, about how many isBad calls are needed in the worst case?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions