It says one: pick the midpoint.
其次,检查是否是答案。
Otherwise, we find the midpoint, and notice what it does.
这个开头已开始可能是在那,但是过一会可能就指向。
In this case, it's cutting up from the bottom end, which makes sense because the thing I'm looking for is always bigger than the midpoint and then, I don't know, let's pick something in between. Somebody want-- ah, I keep doing that-- somebody like to give me a number?
排除元素,这是讲得通的,因为我总是找比中点大的元素,那让我们挑一个同,中点之间的元素吧,我再来试试,谁给我个数字吧,我知道你们想给我些其他东西?
first So what do I do? I find the midpoint by taking last minus first, divide by 2, and add to start.
要怎么做?我把last减去,除以二,加到起点上去。
It says find the midpoint, which says, last take the start, which is pointing to that place and add it to start. And that basically, somewhere about here, gives me the midpoint.
先找到中点,从起点开始,指向这个位置,用first减去,加上得到偏移量),大概在这里,我们找到了终点。
应用推荐