摘要:
package com.sw.demo.test;/** * 关于快速排序 * @author Song * */public class TestQuickSort { public static void main(String[] args) { int[] arr = {5,9,8,4,7,3,6,2,1}; quickSort(arr,0,arr.length-1); // 快速排序 f... 阅读全文
摘要:
package com.sw.demo.test;public class Test { public static void main(String[] args) { int[] arr = {1,7,3,2,6,5,4,8,9}; System.out.println("--------------- 排序前 ---------------"); for (int i = 0; i < arr.length; i++) { System.out.print(arr[i]+" "); } System.out.println(); //inse 阅读全文