AlgoMaster Logo

Maximum Product Subarray

nums=[2, 3, -2, 4]
0 / 11
algomaster.io
Step:Try every subarray: fix a start, extend the end, and track the running product.