Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Number of Zero-Filled Subarrays
Bookmark
Brute Force
Counting Zeros
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
found
0
count
0
1
0
0
2
0
0
0
3
0
0
0
1
2
3
4
5
6
7
8
9
found
0
count
0
1
0
0
2
0
0
0
3
0
0
i, j
0
1
2
3
4
5
6
7
8
9
found
0
count
0
1
0
0
2
0
0
0
3
0
0
i, j
0
1
2
3
4
5
6
7
8
9
found
0
count
2
1
0
0
2
0
0
0
3
0
0
i, j
0
1
2
3
4
5
6
7
8
9
found
0
count
3
+1
1
0
0
2
0
0
0
3
0
0
i
j
0
1
2
3
4
5
6
7
8
9
found
2
count
5
+1
1
0
0
2
0
0
0
3
0
0
i, j
0
1
2
3
4
5
6
7
8
9
found
1
count
7
+1
1
0
0
2
0
0
0
3
0
0
i, j
0
1
2
3
4
5
6
7
8
9
found
1
count
9
1
0
0
2
0
0
0
3
0
0
i, j
0
1
2
3
4
5
6
7
8
9
found
0
count
9
1
0
0
2
0
0
0
3
0
0
i
0
1
2
3
4
5
6
7
8
9
found
2
count
11
1
0
0
2
0
0
0
3
0
0
0
1
2
3
4
5
6
7
8
9
found
0
count
12
algo
master
.
io
Step:
Start: count every subarray made only of zeros
0 / 34
Input
Multiple Runs
All Zeros
No Zeros
Alternating
Custom
nums
=
[1, 0, 0, 2, 0, 0, 0, 3, 0, 0]
0 / 34
algo
master
.
io
Step:
Start: count every subarray made only of zeros