Right, so s of i saying, given the list, look at the i'th element, true is it the same thing?
第2个元素,看他们是不是相等呢?,如果他们相等,好,把答案设置为?
It's looking at the i'th and the i plus first element and it's saying, gee, if the i'th element is bigger than the i'th plus first element, what's the next set of three things doing?
他在观察第i个元素,和第i+1个元素,如果第i个元素大于第i+1个元素,接下来的要做哪三件事情?
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的意思就是,给定数组的?
应用推荐