标签:tar [] int start 分治 int end end static void sys
排序算法是对冒泡排序的改进,基于分治(divide and conquer)思想。
package com.anderson.sort; public class QuickSort{ public static void main(String []args){ int[] a = {10,23,5,16,15,1,30,45,23,9}; int start = 0; int end = a.length-1; sort(a,start,end); for(int i = 0; i<a.length; i++){ System.out.println(a[i]); } } }
标签:tar [] int start 分治 int end end static void sys
原文地址:http://www.cnblogs.com/cuiyijing/p/7806779.html