排序之快速排序(Java)
public class QuickSort {public static void main(String[] args) { int[] arr = {5,1,9,6,3,4,8}; quickSort(arr,0,arr.length - 1); for (int i = 0 ;i < arr.length;i++) { System.out.print(arr[i] + " "); }}public static void quickS
原创
2021-10-14 16:39:47 ·
69 阅读 ·
0 评论