Article directory
Bubble Sort
Bubble sort is to compare the size of two adjacent data in a sequence in turn, and exchange the largest or smallest data to the last position by continuously exchanging the position of the data, so as to achieve the sorting method of data sorting.
排序用例: {
3 1 2 0 }
第一轮:完成数字3的排序
比较(3 >