My LeetCode grinding. Trying to do a problem a day.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

problem.txt 184B

12345678910111213
  1. Given a sorted linked list, delete all duplicates such that each element appear only once.
  2. Example 1:
  3. Input: 1->1->2
  4. Output: 1->2
  5. Example 2:
  6. Input: 1->1->2->3->3
  7. Output: 1->2->3