冒泡排序
思路:二二交换,可以让最大的数沉底,在length-1次,就有序了
package day20180315;
public class Maopao {
public static...===,-621,-9,10,12,36,75,88
第6趟排序===,-621,-9,10,12,36,75,88
sort the end of: -621 -9 10 12 36 75 88
选择排序...思路,每次选择最小的数,分别放在0--length-1的位置上。...5 count=5
-56 -3 8 8 12 66 87---------第6 count=3
排序后的数组:
-56 -3 8 8 12 66 87
三个时间复杂度为n*n的排序算法...等我准备好后,来写归并排序,和快排。