快排-Java实现
public class KuaiPai{
public static void quickSort(int[] nums,int begin,int end){
if (begin >= end)
return;
int i = begin;
int j = end;
int temp = nums[i];
//目的是为了将大于temp的值放在temp的右边,
//小于则放在temp的左边。
while(i < j){
//nums[j]数字大于t
原创
2020-09-14 21:35:38 ·
99 阅读 ·
0 评论