Skip to content

Latest commit

 

History

History
executable file
·
14 lines (10 loc) · 333 Bytes

File metadata and controls

executable file
·
14 lines (10 loc) · 333 Bytes

题目

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.

解题思路

见程序注释