And if that's true is everything in the string, starting at the first element and removing the last element, a palindrome?
如果是相同的话,是不是字符串中的所有从第一个元素开始,并且删除最后一个元素后?
The next line says alright, suppose I don't, I'm not at the last element.
下一段说的是,好的,假设我不能放进去,我也不是在看最后一个元素。
This is decidedly the last of all the funeral mourners, and Peter provides Milton's poem with an important element of finality, of closure.
毫无疑问这是最后一名哀悼者,彼得给弥尔顿的诗带来了一种重要的终局性,最终章的结尾。
All right, I've got to do one pass to bubble the last element to the end. I've got to do another pass to bubble the second last element to the end.
好的,我要冒一次泡来,把最大的元素冒到最后去,我还得再冒一次泡来吧第二大的元素。
In either event, if I'm looking at the last element, I return.
在这两种情况中,如果是最后一个,元素的话我就返回。
OK. The next largest element has to end up in the second last spot. Et cetera. All right, so it's called bubble sort because it does this bubbling up until it gets there.
好的,下一个最大元素又,能跑到倒数第二的位置,等等如此,好的,这称为冒泡排序,因为这个泡泡一直冒到他自己的位置。
What's the last element in the list look like?
列表中最后一个元素是什么样呢?
Otherwise I'm going to check to see is the first and last, there's that - 1 indexing, is the first and last element of the string the same?
是第一个还是最后一个,这就是这边-1的索引内容,这个字符串的第一个,和最后一个的内容是否相同呢?
And that's like kind of hoping that the element you're searching for is the first in the list and the last in the list. Maybe.
也就是希望要找的元素,在数组的头部或者尾部,情况可能是这样的。
First line says, 0 if i is 0, that means I'm looking at the very last element.
第一行的意思是,如果i的值是,就意味着我看到的,是最后一个元素。
应用推荐