Leetcode 83-Remove Duplicates from Sorted List

难度: easy Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 思路:遍历链表,删除链表中的重复项。用whi
相关文章
相关标签/搜索