摘要: 冒泡排序 //冒泡排序, type = 0 则从小到大, type = 1则从大到小 //遍历一遍如果后面的比前面的小(大),则两者交换,遍历length-1遍 public void bubbleSort(int a[], int type){ for(int i = 0; i < a.lengt 阅读全文
posted @ 2019-09-26 12:41 不咬人的兔子 阅读(178) 评论(0) 推荐(0)