leetcode692+出现次数作多的K单词,优先队列,注意重写排序语法

https://leetcode.com/problems/top-k-frequent-words/description/code struct cmp{ bool operator()(pair<int,string>a, pair<int, string>b) { if(a.first==b.first) return a.second>b.second;
相关文章
相关标签/搜索