摘要: public void mergeSort(int[] arry, int low ,int high){ if (low < high){ int middle = ( low +high)/2 ; mergeSort(arry,low,middle); mergeSort(arry,middle+... 阅读全文
posted @ 2018-10-03 15:08 沙漠里的小鱼 阅读(77) 评论(0) 推荐(0) 编辑
摘要: public static void quckSort(int[] arry,int low ,int high){ if (low = temp ){ high-- ; } arry[low] =arry[high] ; while (low < high && a... 阅读全文
posted @ 2018-10-03 15:06 沙漠里的小鱼 阅读(90) 评论(0) 推荐(0) 编辑
摘要: public void heapSort(int[] arry){ int len= arry.length -1 ; for(int i = (len-1)/2 ;i>=0 ;i--){ buildHeap(arry,i,len); } for(int i = len ;i >0 ;i--){ ... 阅读全文
posted @ 2018-10-03 10:28 沙漠里的小鱼 阅读(69) 评论(0) 推荐(0) 编辑