If I do this, try and get the 10th element of a list that's only eight long. I get what looks like an error, but it's actually throwing an exception.
如果我来这么做,试着去取长度为8的列表的第十个元素,我貌似能得到一个错误。
In binary search-- ah, there's that wonderful phrase, this is called a version of binary search just like you saw bin-- or bi-section methods, - when we were doing numerical things- in binary search, I need to keep track of the starting point and the ending point of the list I'm looking at.
就是当我们处理数字的时候,所称的二分检索,在二分法搜索中,我需要记录区间的开始点和尾点,初始化的时候就是-,问题输入的开始点和尾点,当我开始做测试的时候,我想要做的就是去取中值点。
How many of you-- I was walking with a student over to my office after lecture the other day to get some material to him.
你们中有哪几位,前些天我和一个学生在课后,一起去我的办公室取材料
I've got to focus for a second just to get it.
等我去取一下
I going to come back in a second to how it actually does that, but it basically says, get me x value for p 1, get me the x value for p 2, compare them, just as you would normally.
是一个类的实例,我要去取的这个实例,所关联的x值,我稍后会讲讲实际上,这里是怎么实现的,但是基本上它的意思就是,给我p1的x值。
应用推荐