![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
haosong09
这个作者很懒,什么都没留下…
展开
-
快速排序
public static void quickSort(int []arr, int low, int height){ if(low>height){ return; } //基准数 int i = low, j = height; int key = arr[i]; while (i<j){ whi...原创 2019-03-14 14:32:39 · 116 阅读 · 0 评论 -
选择排序
public static void sort(int []arr, int length){ int min, temp; for(int i=0; i<length-1; i++){ min = i; for(int j=i+1; j<length; j++){ if(arr[j]<arr[min])...原创 2019-03-11 10:49:30 · 83 阅读 · 0 评论