会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
leolhq
博客园
首页
新随笔
联系
管理
订阅
2017年2月16日
Priority queue and Heap
摘要: I have seen lots of solutions confuse priority queue with heap. I find a good link and list the talk below. Concept: 1.Heap is a kind of data structur
阅读全文
posted @ 2017-02-16 11:44 leolhq
阅读(158)
评论(0)
推荐(0)
2017年2月15日
A recursive solution for merge two lists
摘要: class Solution { public: ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) { if(l1 == NULL) return l2; if(l2 == NULL) return l1; if(l1->val val) { l1...
阅读全文
posted @ 2017-02-15 21:09 leolhq
阅读(99)
评论(0)
推荐(0)
公告