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.
我打算跟踪一个小的变量称为,初始值为真,只要它是真的,算法就会继续,但是在循环里,我打算把他设为假,除非交换发生,就把它设为真。
If you keep all of these emotions bottled up inside, it's going to explode sometime.
如果你一直让所有情绪积聚在你心里,那迟早它们会爆发的。
应用推荐