I will look at the rest of the list to decide what's the element to swap into the next place.
我会查看列表剩下的部分,来看看需要交换哪个元素。
While climate is a key element, Moritz says, it shouldn't come at the expense of the rest of the equation.
莫里茨说,虽然气候是一个关键因素,但不应该以牺牲其他因素为代价。
If not, the function adds the first element to the sum of the rest of the list.
否则,该函数将第一个元素添加到列表其余部分的总和。
I look at the rest of the list to decide what's the element to swap into the next place.
我会查看列表剩下的部分,来看看需要交换哪个元素。
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.
比当前位置数组的元素要小,我也就知道后面的数肯定,也都比我的目标数要大了,我就不用再继续进行下去了,这意味着目标数不在这个数组中,我就可以退出了。
应用推荐