会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
烟火流沙
博客园
首页
新随笔
联系
订阅
管理
2020年12月16日
堆排序:大顶堆,小顶堆
摘要: 大顶堆 priority_queue<int> q; for( int i= 0; i< 10; ++i ) q.push(i); while( !q.empty() ){ cout<<q.top()<<endl; q.pop(); } 小顶堆 priority_queue<int, vector<
阅读全文
posted @ 2020-12-16 15:45 烟火流沙
阅读(95)
评论(0)
推荐(0)
编辑
公告