摘要: LeetCode 21 Merge Two Sorted Lists/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */stru... 阅读全文
posted @ 2015-11-23 10:25 Walker_Lee 阅读(100) 评论(0) 推荐(0) 编辑
摘要: LeetCode 232 Implement Queue using Stacksclass Queue { stack input, output;public: void push(int x) { input.push(x); } void pop(voi... 阅读全文
posted @ 2015-11-23 09:22 Walker_Lee 阅读(102) 评论(0) 推荐(0) 编辑