排序算法---快速排序

package cn.hncu; import org.junit.Test; /*  * 把第一個數當做樞紐,在左邊找比第一個數小的數,在右邊找比第一個數大的數  */ public class Quick { public void swap(int[] a, int i, int j) { int temp = a[i]; a[i] = a[j]; a[j] = temp; } public
相關文章
相關標籤/搜索