Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
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
1
0
2
2
3
0
4
0
5
0
6
3
7
0
8
0
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
1
0
2
2
3
0
4
0
5
0
6
3
7
0
8
0
9
zeroCount = 0
result = 0
algo
master
.
io
Step:
Start: Count zero-filled subarrays