152. Maximum Product Subarray
https://leetcode.com/problems/maximum-product-subarray/
Problem
Given an integer array nums
, find the contiguous subarray within an array (containing at least one number) which has the largest product.
Example 1:
Example 2:
Solution
#dp
Last updated
Was this helpful?