And that you might look at, for example, that first example, and say, man by this stage it was already sorted, yet it had to go through and check that the third element was in the right place, and then the fourth and then the fifth and then the six.
你可能会去看看例如第一个例子,然后要抱怨,到这里,它已经是排好序的了,但他还是得去遍历查看,第三个元素是不是在正确的位置,然后第四个,第五个,第六个。
s1 So for the fourth period, now we're into the 4 s 1 3d for potassium here. And what we notice when we get to the third element in 4s2 and the fourth period is 3d that we go 4 s 2 and then we're back to the 3 d's.
对于第四周期到现在我们来到钾的1,然后我们返回到,我们注意到当我们看到第三个元素,第四周期我们来到,然后我们返回到。
And one is the third element. And just return, it's done. It is a palindrome. That make sense.
完成,数组时回文的,这就对了,因为数组1a1从前面和从后面读都是一样的。
All of a sudden a third element has been injected in to the comparison.
突然第三个元素又跃入眼帘了。
应用推荐