摘要: LeetCode 83 Remove Duplicates from Sorted List/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next;... 阅读全文
posted @ 2015-11-17 10:24 Walker_Lee 阅读(108) 评论(0) 推荐(0) 编辑
摘要: LeetCode 70 Climbing Stairs使用递归方法,超时int climbStairs(int n) { if(n=2)int climbStairs(int n) { if (n == 0 || n == 1) return 1; int pre = 1... 阅读全文
posted @ 2015-11-17 09:53 Walker_Lee 阅读(112) 评论(0) 推荐(0) 编辑
摘要: LeetCode 206 Reverse Linked List递归:/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */str... 阅读全文
posted @ 2015-11-17 09:22 Walker_Lee 阅读(117) 评论(0) 推荐(0) 编辑