会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
景行cmy
博客园
首页
新随笔
联系
订阅
管理
2020年4月12日
topk 问题
摘要: 对于固定数量的数据,堆排序和快速排序都可以,数据流就用堆排序 //堆排序: class Solution { int findKthLargest(int k , vector<int>& nums) { priority_queue<int,vector<int>,greater<int>> p
阅读全文
posted @ 2020-04-12 13:59 景行cmy
阅读(106)
评论(0)
推荐(0)