Now if you look at my derivation here, there's one spot where I could have just stopped and proven my point without going through the whole thing.
如果仔细检查我的推导过程,你会发现其实,我们不用研究整个循环过程,就可以证明我们要证的公式。
The better way to think about this is, suppose, rather than starting at the beginning, I just grabbed some spot at random, like this one.
不从数组的头开始遍历,我随即的从数组中抓一个元素,比如这个,我去看看这个元素的值。
In this particular case, you can see of the brain is steering at the red spot.
如图所示,对于迈克的案例。
At intervals her hand holding the cigarette would pass the spot on her neck.
他又郁闷又紧张,时不时地那个女人手中的烟灰。
steering. The eyes would be in the front, staring at the red spot.
我们能够看到大脑指向那个红点。
So I'm going to check to see if- really can't read that thing, let me do it this way-- right, I'm going to increase the number of compares, and I'm going to check to say, is the thing I'm looking for at the i'th spot in the list?
让我们这样做吧-好-,我会去增加比较次数的计数器,然后去看看在第i处的元素,是不是我要找的呢?,这里s的意思就是,给定数组的?
应用推荐