AlgoMaster Logo

Maximum Product Subarray

nums=[2, 3, -2, 4]
0 / 11
012323-24
algomaster.io
Step:Track both the max and min running products, a negative number can flip the min into the max