Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Count Binary Substrings
Bookmark
Input
00110011
10101
00110
Custom
s
=
00110011
prev =
0
curr =
1
count =
0
0
1
2
3
4
5
6
7
0
0
1
1
0
0
1
1
algo
master
.
io
Step:
Count substrings of "00110011" with equal runs of 0s and 1s
0 / 15
Input
00110011
10101
00110
Custom
s
=
00110011
0 / 15
prev =
0
curr =
1
count =
0
0
1
2
3
4
5
6
7
0
0
1
1
0
0
1
1
algo
master
.
io
Step:
Count substrings of "00110011" with equal runs of 0s and 1s