Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product.
求连续子数组最大乘积。
1 | Example 1: |
1 | 双重循环(O(n^2)) |
1 | 动态规划 |
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product.
求连续子数组最大乘积。
1 | Example 1: |
1 | 双重循环(O(n^2)) |
1 | 动态规划 |
WeChat Pay
Alipay