a I'm not, so come down here check palindrome that the two end points a and a are the same and call this again also.
判断两端都是,然后再次调用,注意发生了什么。
and you had planned to go on a Dutch pay but at the end of the meal, the friend offers to take the check.
你本来希望两人各自付账,但吃完饭后,你朋友便主动买单。
The easy thing to do would be the following: start at the front end of the list, check the first element. If it's the thing I'm looking for, I'm done. It's there. If not, move on to the next element. And keep doing that.
从数组的第一个元素开始:,如果这是目标元素那么结束,如果不是的话就继续比较下面的元素,并一直这么比较下去,但如果,在某一点我发现我要寻找的数字。
So that's just a little bit of a check for yourself, and it should make sense because what you're doing is you're calculating the difference between energy levels, so you just need to flip around which you put first to end up with a positive number here, and that's a little bit of a check that you can do what yourself.
所以你们总要确保括号,离得这项是正的,这是你们自己,可以做的检查,这事很有道理的,因为你们做的是计算能量差,所以你需要调整顺序来保证一个正数,这是你们自己可以做的检查。
Always check your sign at the end.
一定要记得检查符号。
It says while the index is smaller than the size - of the list, I'm not at the end of the list and I don't have an answer yet, check.
当然是如果我还没检索到目标数的话,因此我会去看看是不是,这里真的看不情。
Having reached the end of the block, go back up and check the test.
执行到了这块代码的最后,程序会回去再做一次测试。
There's the base case. If it's longer than one, what do I want to do? Well I'd like to check the two end points to see are they the same character? And if they are, then oh, I just need to know is everything else in the middle a palindrome?
如果只有一个元素也是回文,这是基本事件,如果比一个长的话那么我应该怎么做?,我将会查看两头是否相同?,如果是的,我只要知道中间剩下的部分是不是回文即可?
应用推荐