题目:https://leetcode.com/problems/first-bad-version/
代码(github):https://github.com/illuz/leetcode
在一个版本序列中,后半部分的版本是坏的,给你一个判断版本是否坏掉的函数,问能不能用最少的判断次数找出第一个坏数。
二分裸题。
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
题目:https://leetcode.com/problems/first-bad-version/
代码(github):https://github.com/illuz/leetcode
在一个版本序列中,后半部分的版本是坏的,给你一个判断版本是否坏掉的函数,问能不能用最少的判断次数找出第一个坏数。
二分裸题。