摘要:
1 class Solution { 2 public: 3 ListNode* reverseList(ListNode* head) { 4 if(head==NULL) 5 return head; 6 ListNode* pr... 阅读全文
摘要:
1 class Solution { 2 public: 3 bool containsDuplicate(vector& nums) { 4 int n=nums.size(); 5 if(n==0) 6 return 0; 7 ... 阅读全文