Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Number of Zero-Filled Subarrays
Bookmark
Input
Multiple Runs
All Zeros
No Zeros
Alternating
Custom
nums
=
[1, 0, 0, 2, 0, 0, 0, 3, 0, 0]
1
0
0
2
0
0
0
3
0
0
0
1
2
3
4
5
6
7
8
9
zeroCount
0
result
0
algo
master
.
io
Step:
Start: Count zero-filled subarrays
0 / 25
Input
Multiple Runs
All Zeros
No Zeros
Alternating
Custom
nums
=
[1, 0, 0, 2, 0, 0, 0, 3, 0, 0]
0 / 25
1
0
0
2
0
0
0
3
0
0
0
1
2
3
4
5
6
7
8
9
zeroCount
0
result
0
algo
master
.
io
Step:
Start: Count zero-filled subarrays