Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Remove Duplicates from Sorted List
Bookmark
Hash Set
In-Place
Input
Example 1
Example 2
All Same
No Duplicates
Custom
values
=
[1, 1, 2]
1
1
2
head
1
1
2
head
1
1
2
head
prev
current
1
1
2
head
prev
current
1
1
2
head
prev
current
1
2
head
prev
current
1
2
head
prev
current
1
2
head
prev
current
1
2
head
algo
master
.
io
Step:
Start: Remove duplicates from sorted linked list with a hash set
0 / 7
Input
Example 1
Example 2
All Same
No Duplicates
Custom
values
=
[1, 1, 2]
0 / 7
algo
master
.
io
Step:
Start: Remove duplicates from sorted linked list with a hash set