I wanted to go back and leer at my strange Dickensian mother in the hash joint. I tingled all over from head to foot.
这时的我已经有些神志不清,真想回去看看,小饭馆里奇怪的幽灵一般的母亲。
Notice by the way, there's that nice speck true going on saying put a string here.
在这里说放一个字符串在这儿有点小问题,如果是回文的话那么它将会返回真值。
swap I'm going to keep track of a little variable called swap, it's initially true, and as long as it's true, I'm going to keep going, but inside of the loop I'm going to set it to false, and only if I do a swap will I set it to true.
我打算跟踪一个小的变量称为,初始值为真,只要它是真的,算法就会继续,但是在循环里,我打算把他设为假,除非交换发生,就把它设为真。
All right, it's so if I looked at it, sorry, IF x is less than y, THEN check to see IF x is less than z, and if that's true, print out x is the smallest.
好,代码是这样的,对不起,是不是x比y小,然后去看看是不是x比z小,如果都为真的话,显示x为最小值。
应用推荐