摘要: 1.冒泡法排序 /* * 冒泡法排序 :在要排序的一组数中,对当前还未排好序的范围内的全部数,自左而右对相邻的两个数 * 相邻的两个数的交换 */ public void bubbleSort(int[] num) { int temp = 0; for(int i=0;i<num.length-1 阅读全文
posted @ 2016-02-27 22:14 sunli0205 阅读(202) 评论(0) 推荐(0) 编辑