Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
152. Maximum Product Subarray
Bookmark
Input
Example 1
Example 2
Example 3
Custom
nums
=
[2, 3, -2, 4]
2
3
-2
4
algo
master
.
io
Step:
Start of algorithm: Find maximum product subarray. We track both max and min products because negative * negative = positive!
0 / 17
Input
Example 1
Example 2
Example 3
Custom
nums
=
[2, 3, -2, 4]
0 / 17
2
3
-2
4
algo
master
.
io
Step:
Start of algorithm: Find maximum product subarray. We track both max and min products because negative * negative = positive!