• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
yanqi
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2017年7月5日

eclipse 下编译c++
摘要: 下载jdk 下载eclipse for c++ 版本 下载mingw ps:show project types。。。 这个选项不要打钩 阅读全文
posted @ 2017-07-05 16:27 yanqi 阅读(152) 评论(0) 推荐(0)
 
 

2016年1月14日

best time to cooldown
摘要: http://segmentfault.com/a/1190000004193861 阅读全文
posted @ 2016-01-14 09:11 yanqi 阅读(94) 评论(0) 推荐(0)
 
 

2016年1月9日

LeetCode() Range Sum Query-mutable
摘要: http://www.java3z.com/cwbwebhome/article/article1/1369.html?id=4804http://www.cnblogs.com/zichi/p/4806998.html 阅读全文
posted @ 2016-01-09 13:04 yanqi 阅读(107) 评论(0) 推荐(0)
 
 

2016年1月8日

LeetCode() Basic Calculator 不知道哪里错了
摘要: class Solution {public: int calculate(string s) { stack num; stack symbol; for(int i=0;i='0'&&s[i]'9'){ num.push(stoi(s.substr(i,j-i))); i=j-1; break;... 阅读全文
posted @ 2016-01-08 12:55 yanqi 阅读(146) 评论(0) 推荐(0)
 
 

2015年12月26日

LeetCode() Symmetric Tree
摘要: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x... 阅读全文
posted @ 2015-12-26 17:02 yanqi 阅读(111) 评论(0) 推荐(0)
 
 

2015年12月25日

LeetCode() Binary Tree Level Order Traversal
摘要: 感觉我这个思路好 先记录上一层有几个节点/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * Tre... 阅读全文
posted @ 2015-12-25 13:53 yanqi 阅读(129) 评论(0) 推荐(0)
 
 

2015年12月12日

Find Median from Data Stream
摘要: 常规方法 超时class MedianFinder { vector coll;public: MedianFinder(){ } void heapfu(vector& coll,int idx,int max){ int left=2*idx... 阅读全文
posted @ 2015-12-12 21:12 yanqi 阅读(242) 评论(0) 推荐(0)
 
 

2015年12月7日

LeetCode() Super Ugly Number
摘要: 用了优先队列,还是超时class Solution {public: int nthSuperUglyNumber(int n, vector& primes) { priority_queue,std::greater > pq; pq.push(1); int i=1; i... 阅读全文
posted @ 2015-12-07 15:10 yanqi 阅读(141) 评论(0) 推荐(0)
 
 

2015年12月4日

LeetCode() Insert Interval
摘要: auto compare = [] (const Interval &intv1, const Interval &intv2) { return intv1.end start = min(newInterval.start, itr1->star... 阅读全文
posted @ 2015-12-04 12:31 yanqi 阅读(157) 评论(0) 推荐(0)
 
 

2015年12月3日

LeetCode() Largest Number
摘要: 全排列,超时,知道超时,只是想验证一下。class Solution {public: string largestNumber(vector& nums) { sort(nums.begin(),nums.end()); string res=""; ... 阅读全文
posted @ 2015-12-03 17:10 yanqi 阅读(173) 评论(0) 推荐(0)
 
 
下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3