It says while the index is smaller than the size - of the list, I'm not at the end of the list and I don't have an answer yet, check.
当然是如果我还没检索到目标数的话,因此我会去看看是不是,这里真的看不情。
i-1 But with index i minus 1.
但是同时返回的是索引号。
So, as I said, there are many graphs around many charts of the high and low glycemic index foods and some things would surprise you.
如我所说,会有许多高血糖指数的食物,和低血糖指数的食物的图表,有些东西会让你惊讶
In essence, this collapse in stock prices -the one-day collapse in stock prices -I think in the U.S. The price was, depending on which index you were looking at, were down 21-22% in a single day.
实际上,这次股价暴跌,股价一天内的跌幅,当然在美国国内,要看你参考的是哪种股指,但基本上一天之内暴跌21-22%
Now I seem to be violating my own mantra here by just calling this variable A, but this is reasonable, I much as with four loops when you just call an incrementing variable I, because you just need an index, well, same here.
现在我好像违背了我自己的意愿,我把这个变量叫做A,但这是合理的,就像我们的for循环中,我们把一个增变量叫做,因为我们只要一个索引,这里也一样。
football It's kind of bizarre, but the French call soccer football. And then I can index in it.
但是法国人不说soccer说,因此我可以把它加入索引。
I'm going to set up an index, which is going to tell me where to look, starting at the first part of the list, right?
索引告诉我从哪里开始检索数组,对不对?,然后我会去记录下我做了多少次比较,这样我就能看到这个算法的工作量了?
Again I should have said first, index 0, the first one. I can similarly go in and say I'd like all the things between index 2 and index 4. And again, remember what a b c that does. Index 2 says start a 0. 1, 2. So a, b, c.
我还是要说一遍,索引为0的元素,是第一个元素,我可以要求返回索引,2和4之前的所有元素,请记住2,是从0开始的,那么0,1,2对应的是。
OK. What does that say? I'm going to change MinIndex min index to also point there n value is 8, j starts off here, and I say, OK, is the thing I'm looking at here smaller than that? Yes.
好的,这意味着什么?,我打算交换,让它也指向那里,MinVal是8,j从这里开始,我要找的值比这个小么?是的。
Home prices are falling at the highest rate we've ever seen. I have my own index s Case-Shiller indexes the Standard & Poor's Case-Shiller indexes and we announced our indexes yesterday.
房价正在以我们从未见过的速度下跌,我有自己的一个指数,名字叫The,Standard&Poor’,而且昨天我们公布了我们的指数。
So I'm not going to take the item with an index of 2.
所以我不会选择,索引值为2的物品。
And I can obviously do the other direction which is I can say skip to index 2 and all the remaining pieces. This lets me slice out, if you like, the front part or back part or a middle part of the tuple as I go along.
很明显我可以从索引2开始切片,所有剩下的元素,这可以让我2,如果你喜欢我这么说的话,取得元素的前面的或者后面的,或者中间的部分。
To get any location in memory, to get to any value of the list, I simply have to say which element do I want to get, I know that these things are stored in a particular size multiply that index by 4, add it to start, and then it's in a constant amount of time I can go to that location and get out the cell.
取得列表中的任何一个值,简单说来,想要取得列表中的任何元素,我知道这些元素存在特定的大小中,把下标乘以4,加到start上,然后定位到内存单元,并取出值就是固定的时间了,好的,如果元素以固定大小存储。
应用推荐