Learn
Practice
Newsletter
Resources
Mobile
New
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Remove Duplicates from Sorted Array
Bookmark
Input
Input 1
All Duplicates
No Duplicates
Custom
nums
=
[0, 0, 1, 1, 1, 2, 2, 3, 3, 4]
0
1
2
3
4
5
6
7
8
9
0
0
1
1
1
2
2
3
3
4
0
1
2
3
4
5
6
7
8
9
0
0
1
1
1
2
2
3
3
4
0
1
2
3
4
5
6
7
8
9
0
0
1
1
1
2
2
3
3
4
writePos
readPos
0
1
2
3
4
5
6
7
8
9
0
0
1
1
1
2
2
3
3
4
writePos
readPos
0
1
2
3
4
5
6
7
8
9
0
1
1
1
1
2
2
3
3
4
writePos
readPos
0
1
2
3
4
5
6
7
8
9
0
1
1
1
1
2
2
3
3
4
writePos
readPos
0
1
2
3
4
5
6
7
8
9
0
1
2
1
1
2
2
3
3
4
writePos
readPos
0
1
2
3
4
5
6
7
8
9
0
1
2
1
1
2
2
3
3
4
writePos
readPos
0
1
2
3
4
5
6
7
8
9
0
1
2
3
1
2
2
3
3
4
writePos
readPos
0
1
2
3
4
5
6
7
8
9
0
1
2
3
1
2
2
3
3
4
writePos
readPos
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
2
2
3
3
4
algo
master
.
io
Step:
Start of algorithm
0 / 19
Input
Input 1
All Duplicates
No Duplicates
Custom
nums
=
[0, 0, 1, 1, 1, 2, 2, 3, 3, 4]
0 / 19
algo
master
.
io
Step:
Start of algorithm