摘要:
快速排序(数组a从小到大,参数1是待排序的数组,参数2是起始下标,参数3是终止下标): 1 static void sort(int [] a, int l,int r){ 2 int m = l+r>>1; 3 int i=l, j = r; 4 ... 阅读全文
posted @ 2014-10-28 10:47 西域小车 阅读(131) 评论(0) 推荐(0)
|
||
|
摘要:
快速排序(数组a从小到大,参数1是待排序的数组,参数2是起始下标,参数3是终止下标): 1 static void sort(int [] a, int l,int r){ 2 int m = l+r>>1; 3 int i=l, j = r; 4 ... 阅读全文
posted @ 2014-10-28 10:47 西域小车 阅读(131) 评论(0) 推荐(0) |
||