Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Count Binary Substrings
Bookmark
Input
00110011
10101
00110
Custom
s
=
00110011
s
0
0
1
0
2
1
3
1
4
0
5
0
6
1
7
1
prevGroupSize = 0
currGroupSize = 1
count = 0
algo
master
.
io
Step:
Start: Count binary substrings with equal 0s and 1s in "00110011"
0 / 16
Input
00110011
10101
00110
Custom
s
=
00110011
0 / 16
s
0
0
1
0
2
1
3
1
4
0
5
0
6
1
7
1
prevGroupSize = 0
currGroupSize = 1
count = 0
algo
master
.
io
Step:
Start: Count binary substrings with equal 0s and 1s in "00110011"