Java快排
public static void quickSort(int[] arr, int start, int end){
//递归退出条件
if(start>=end){
return;
}
int i,j,temp;
i = start;//i为头指针
j = end;//j为尾指针
temp = arr[start];//temp为轴元素
while(i=temp){
j--;
}
while(i
public static void quickSort(int[] arr, int start, int end){
//递归退出条件
if(start>=end){
return;
}
int i,j,temp;
i = start;//i为头指针
j = end;//j为尾指针
temp = arr[start];//temp为轴元素
while(i=temp){
j--;
}
while(i