OK, so now, Romeo: "shall I hear more, or shall I speak at this?" Fellows, a bit of advice, don't interrupt.
现在,罗密欧,我是继续听下去呢,还是现在就对她说话,同学们,有点建议,别打断。
But if, at any point, I get to a place in the list where the thing I'm looking for is smaller than the element in the list, I know everything else in the rest of the list has to be bigger than that, I don't have to bother looking anymore.
比当前位置数组的元素要小,我也就知道后面的数肯定,也都比我的目标数要大了,我就不用再继续进行下去了,这意味着目标数不在这个数组中,我就可以退出了。
应用推荐