And my real answer is, go try it out, because obviously you can tell I frequently do this the wrong way and the TAs give me a hard time every time. John.
你可以,而我真正的答案是去试一试吧,因为很明显你可以发现我老是做错,而我的助教总是给我难堪,约翰。
So if you have something due, say... in 3 days, you'll just keep saying,
所以如果你有什么要完成的,就说……三天后吧,你总是说,
I always throw that back at people and say, damn it, read some history.
我总是将这个球抛回去并说,你这家伙,还是多读点历史吧
At each stage, no matter which branch, here or here, I take, I'm cutting down the length of the list that I'm searching in half. All right?
选的是这里还是那里,我总是把列表分成两半,对吧?,所以如果我处理一个长度为n的列表?
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?
排除元素,这是讲得通的,因为我总是找比中点大的元素,那让我们挑一个同,中点之间的元素吧,我再来试试,谁给我个数字吧,我知道你们想给我些其他东西?
应用推荐