leet code maximum subarray with positive product code example
Example: max product subarray leetcode
Input: [2,3,-2,4]
Output: 6
Explanation: [2,3] has the largest product 6.
Input: [2,3,-2,4]
Output: 6
Explanation: [2,3] has the largest product 6.