会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lpl_bys
If we want to change the world,we need to change the way it works.
博客园
首页
新随笔
联系
订阅
管理
2017年9月23日
快排模板
摘要: 1 void quicksort(int l,int r){ 2 int i,j,mid,p; 3 i=l;j=r; 4 mid=a[(l+r)/2]; 5 do{ 6 while(a[i]<mid) i++; 7 while(a[j]>mid) j--; 8 if(i<=j){ 9 p=a[i];
阅读全文
posted @ 2017-09-23 21:45 lpl_bys
阅读(105)
评论(0)
推荐(0)
编辑
公告