Maximum Product Subarray
Given an integer array nums, find a subarray that has the largest product, and return the product.
Maximum Product Subarray

Given an integer array nums, find a subarray that has the largest product, and return the product.

Example 1:
Input: [2,3,-2,4]
Output: 6
Input
arr =[2,3,-2,4]

2

3

-2

4

Current Sum
1
Max Sum
4
Variables
VariableValue
res4
curMin1
curMax1
DepthFunction Call
Stack empty
0/17