Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 299 Bytes

File metadata and controls

18 lines (9 loc) · 299 Bytes

Problem 83: Remove Duplicates from Sorted List

Difficulty: Easy

Problem

Given a sorted linked list, delete all duplicates such that each element appear only once.

Example

Given ```1->1->2```, return ```1->2```.

Given ```1->1->2->3->3```, return ```1->2->3```.