摘要: class Solution {public: int nthUglyNumber(int n) { if(n k(n); k[0] = 1; for(int i = 1; i =1 阅读全文
posted @ 2015-09-06 15:25 daijkstra 阅读(652) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/h-index/class Solution {public: int hIndex(vector& citations) { priority_queue pq; for(int i=0;i= pages... 阅读全文
posted @ 2015-09-06 14:55 daijkstra 阅读(131) 评论(0) 推荐(0) 编辑