@快速排序算法(JAVA)(個人複習)

@快速排序算法(JAVA) 一趟快速排序過程 一趟快速排序代碼 static int[] arr; public static int quickSort(int l , int h)//一趟快速排序 { int temp = arr[l];//每次去第一個作爲支點 while(l < h) { while(l< h && arr[h] >= temp ) { h--; }
相關文章
相關標籤/搜索