leetcode 83:刪除排序鏈表中的重複元素

ListNode *deleteDuplications(ListNode* head){ if(head==NULL)return head; ListNode *l1=new ListNode(0); ListNode *l2=l1; l1->next=new ListNode(head->val); head=head->next; l1=l1->next
相關文章
相關標籤/搜索