...

/

Untitled Masterpiece

Let's solve the Maximum Product Subarray problem using the Dynamic Programming pattern.

Statement

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

Constraints:

  • 1≤1\leqnums.length ≤103\leq 10^3

  • −10≤-10\leq ...