摘要: 1 /** 2 * 实现快速排序; 3 * 1.取int[left]为基准数,把比它大的数移到右边,比他小的移到左边 ; 4 * 2.再对左右区重复上述步骤(递归),直至每个区间只有一个数. 5 */ 6 public void quickSort(int[] n, int left, int right) { 7 ... 阅读全文
posted @ 2016-07-11 17:28 -赵东- 阅读(254) 评论(0) 推荐(0)