Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Remove Element
Bookmark
Extra Array
Front Overwrite
Swap with End
Input
Input 1
Input 2
Single Element
Custom
nums
=
[0, 1, 2, 2, 3, 0, 4, 2]
,
val
=
2
nums
0
1
2
3
4
5
6
7
0
1
2
2
3
0
4
2
result
0
1
2
3
4
5
6
7
nums
0
1
2
3
4
5
6
7
0
1
2
2
3
0
4
2
result
0
1
2
3
4
5
6
7
nums
0
1
2
3
4
5
6
7
0
1
2
2
3
0
4
2
result
0
1
2
3
4
5
6
7
nums
0
1
2
3
4
5
6
7
0
1
2
2
3
0
4
2
i
result
0
1
2
3
4
5
6
7
0
nums
0
1
2
3
4
5
6
7
0
1
2
2
3
0
4
2
i
result
0
1
2
3
4
5
6
7
0
1
nums
0
1
2
3
4
5
6
7
0
1
2
2
3
0
4
2
i
result
0
1
2
3
4
5
6
7
0
1
nums
0
1
2
3
4
5
6
7
0
1
2
2
3
0
4
2
i
result
0
1
2
3
4
5
6
7
0
1
3
nums
0
1
2
3
4
5
6
7
0
1
2
2
3
0
4
2
i
result
0
1
2
3
4
5
6
7
0
1
3
0
nums
0
1
2
3
4
5
6
7
0
1
2
2
3
0
4
2
i
result
0
1
2
3
4
5
6
7
0
1
3
0
4
nums
0
1
2
3
4
5
6
7
0
1
3
0
4
0
4
2
result
0
1
2
3
4
5
6
7
0
1
3
0
4
nums
0
1
2
3
4
5
6
7
0
1
3
0
4
0
4
2
result
0
1
2
3
4
5
6
7
0
1
3
0
4
algo
master
.
io
Step:
Start: drop every 2 using a second array
0 / 11
Input
Input 1
Input 2
Single Element
Custom
nums
=
[0, 1, 2, 2, 3, 0, 4, 2]
,
val
=
2
0 / 11
algo
master
.
io
Step:
Start: drop every 2 using a second array