Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Maximum Subarray
Bookmark
Input
Classic
Mostly Positive
All Negative
Single Element
Custom
nums
=
[-2, 1, -3, 4, -1, 2, 1]
0
1
2
3
4
5
6
-2
1
-3
4
-1
2
1
algo
master
.
io
Step:
Start of algorithm
0 / 14
Input
Classic
Mostly Positive
All Negative
Single Element
Custom
nums
=
[-2, 1, -3, 4, -1, 2, 1]
0 / 14
0
1
2
3
4
5
6
-2
1
-3
4
-1
2
1
algo
master
.
io
Step:
Start of algorithm