AlgoMaster Logo

152. Maximum Product Subarray

nums=[2, 3, -2, 4]
0 / 17
23-24
algomaster.io
Step:Start of algorithm: Find maximum product subarray. We track both max and min products because negative * negative = positive!