摘要: 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)
摘要: 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)