摘要: 1 class Solution { 2 public: 3 ListNode* reverseList(ListNode* head) { 4 if(head==NULL) 5 return head; 6 ListNode* pr... 阅读全文
posted @ 2015-06-07 20:48 varcom 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution { 2 public: 3 bool containsDuplicate(vector& nums) { 4 int n=nums.size(); 5 if(n==0) 6 return 0; 7 ... 阅读全文
posted @ 2015-06-07 10:13 varcom 阅读(95) 评论(0) 推荐(0) 编辑