My LeetCode grinding. Trying to do a problem a day.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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