03 2016 档案

 
LeetCode Reorder List
摘要:struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: void reorderList(ListNode* head) { if(head == nullptr) return; int size = 0; ... 阅读全文
posted @ 2016-03-19 07:14 做个不善的人 阅读(222) 评论(0) 推荐(0)
LeetCode Rotate List
摘要:struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: ListNode* rotateRight(ListNode* head, int k) { int level = -1;... 阅读全文
posted @ 2016-03-16 08:33 做个不善的人 阅读(210) 评论(0) 推荐(0)
LeetCode Restore IP Addresses
摘要:DFS 阅读全文
posted @ 2016-03-16 01:13 做个不善的人 阅读(195) 评论(0) 推荐(0)