← 返回 bytedance 的题目列表Remove Duplicates from Sorted Linked List
类型:online_judge
bytedance
Given a sorted linked list, remove all duplicate elements such that each element appears only once. Each node can be visited at most once, and you can reset the head node of the linked list. Write a function that accepts the head node of the linked list as a parameter and returns the head node after deduplication.
Example
Input
1->1->2->3->3