Third, the simple ordering

1, bubble sort:

Start rule, ①, left, comparing two numbers. ②, if left large, the exchange position. ③, if the right large, no exchange position.

Guess you like

Origin www.cnblogs.com/elian91/p/11589889.html