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的意思就是,给定数组的?
So I'm not going to worry whether this item is a vase or a watch or painting I'm just going to say it's the n'th element.
所以我不用担心这个物品,是花瓶还是手表或者油画,我只要说这是第n个元素就好。
应用推荐