Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Remove Duplicates from Sorted List II
Bookmark
Hash Map
Single Pass Dummy
Input
Example 1
Remove Head
All Duplicates
All Same
No Duplicates
Custom
values
=
[1, 2, 3, 3, 4, 4, 5]
1
2
3
3
4
4
5
head
1
2
3
3
4
4
5
head
1
2
3
3
4
4
5
head
1
2
3
3
4
4
5
head
1
2
3
3
4
4
5
0
dummy
head
curr
prev
1
2
3
3
4
4
5
0
dummy
head
curr
prev
1
2
3
4
4
5
0
dummy
head
curr
prev
1
2
4
4
5
0
dummy
head
curr
prev
1
2
4
5
0
dummy
head
curr
prev
1
2
5
0
dummy
head
curr
prev
1
2
5
0
dummy
head
prev
algo
master
.
io
Step:
Start: remove every value that appears more than once
0 / 31
Input
Example 1
Remove Head
All Duplicates
All Same
No Duplicates
Custom
values
=
[1, 2, 3, 3, 4, 4, 5]
0 / 31
algo
master
.
io
Step:
Start: remove every value that appears more than once