等待倒数到结尾。
上边完成后,从5倒数到1,让自己回到警觉状态。
When you are finished, return to alertness by counting backwards from 5 to 1.
我从3倒数到,你们能看到它们几乎,同时抵达底部。
I will count down three to zero, and then you can see that they reach the bottom almost at the same time.
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.
好的,下一个最大元素又,能跑到倒数第二的位置,等等如此,好的,这称为冒泡排序,因为这个泡泡一直冒到他自己的位置。
应用推荐