会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Hello-Vivi
博客园
首页
新随笔
联系
订阅
管理
2020年11月5日
经典排序--快速排序、合并排序、堆排序
摘要: (一)快速排序 思想:用枢纽元素pivot将待排数组分成两个子表,左表中元素全都小于右表元素,,递归执行 int partition(int a[],int low,int high){ int pivot=a[low]; while(low<high){ while(low<high&&a[hig
阅读全文
posted @ 2020-11-05 21:26 Hello-Vivi
阅读(151)
评论(0)
推荐(0)
公告