Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 245 Bytes

note0083.md

File metadata and controls

6 lines (5 loc) · 245 Bytes

Thoughts

Good thought

  1. Operate in the origin linklist
  2. Use a dummy node and a current node to link to the head of linklist
  3. if cur.next.val == cur.next.next.val, make cur.next points to cur.next.next; else make cur.next as cur