Medium
053Maximum Product Subarray
Return the maximum product of a non-empty contiguous subarray.
EXAMPLES
Example 1
Input
{
"nums": [
2,
3,
-2,
4
]
}
Output
6FUNCTION SHAPE
nums: intArray→int