Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Contiguous Array
Bookmark
Input
Classic
Alternating
Full Balance
Mostly Ones
Custom
nums
=
[0, 1, 0]
sum =
0
maxLength =
0
0
1
2
0
1
0
algo
master
.
io
Step:
Start: find the longest subarray with equal 0s and 1s
0 / 11
Input
Classic
Alternating
Full Balance
Mostly Ones
Custom
nums
=
[0, 1, 0]
0 / 11
sum =
0
maxLength =
0
0
1
2
0
1
0
algo
master
.
io
Step:
Start: find the longest subarray with equal 0s and 1s