Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Remove Duplicates from Sorted Array II
Bookmark
Count and Overwrite
Compare Two Back
Input
Input 1
Input 2
All Same
Custom
nums
=
[1, 1, 1, 2, 2, 3]
0
1
2
3
4
5
1
1
1
2
2
3
0
1
2
3
4
5
1
1
1
2
2
3
count = 1
0
1
2
3
4
5
1
1
1
2
2
3
writePos
i
count = 2
0
1
2
3
4
5
1
1
1
2
2
3
writePos
i
count = 3
0
1
2
3
4
5
1
1
1
2
2
3
writePos
i
count = 3
0
1
2
3
4
5
1
1
1
2
2
3
writePos
i
count = 1
0
1
2
3
4
5
1
1
1
2
2
3
writePos
i
count = 1
0
1
2
3
4
5
1
1
2
2
2
3
writePos
i
count = 2
0
1
2
3
4
5
1
1
2
2
2
3
writePos
i
count = 1
0
1
2
3
4
5
1
1
2
2
2
3
writePos
i
count = 1
0
1
2
3
4
5
1
1
2
2
3
3
algo
master
.
io
Step:
Start of algorithm
0 / 17
Input
Input 1
Input 2
All Same
Custom
nums
=
[1, 1, 1, 2, 2, 3]
0 / 17
algo
master
.
io
Step:
Start of algorithm