2015年5月10日

【leetcode】【92】Reverse Linked List II

摘要: #includeusing namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution {public: ListNode* reve... 阅读全文

posted @ 2015-05-10 10:22 ruan875417 阅读(153) 评论(0) 推荐(0) 编辑

【leetcode】【单链表】【206】Reverse Linked List

摘要: #include#includeusing namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution {public: /... 阅读全文

posted @ 2015-05-10 09:34 ruan875417 阅读(118) 评论(0) 推荐(0) 编辑

导航