java快速排序
2021-08-04 04:56
标签:util rgb next main amp http ack load string 直接贴源代码: package com.java.fmd; import java.util.Arrays; import java.util.Scanner; public class QuickSort { public static int b=1; public static void swap(int[] nums, int i, int j) { if (i == j) { return; } int tmp = nums[i]; nums[i] = nums[j]; nums[j] = tmp; } public static void quickSort(int[] nums, int low, int high) { if (low > high) { return; } int i = low, j = high; while (i = nums[low]) { j--; } while (i