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.
比当前位置数组的元素要小,我也就知道后面的数肯定,也都比我的目标数要大了,我就不用再继续进行下去了,这意味着目标数不在这个数组中,我就可以退出了。
But I'm also proud of my alumni in this course who are not in the world of finance.
同时我也很为那些选修过这课的,却不在金融领域工作的毕业生们自豪
His father said, "I see you are spending more of your time in idleness than in taking care of business at this crucial time."
他的父亲对他说,"我老是发现,你成天游手好闲,而不在这节骨眼儿上多花点功夫做正经事"
The worst case here is, the things not in the list in which case I've got to go all the way through the list to get to the end.
目标数不在数组里,这意味着我必须遍历数组中所有的元素,好,说完了这些。
应用推荐