Find the contiguous subarray within an array (containing at least one number) which has the largest product.
For example, given the array [2,3,-2,4],
the contiguous subarray [2,3] has the largest product = 6.
{优快云:CODE:635794}
本文探讨如何在给定数组中找到具有最大乘积的连续子数组,包括实例解析与算法实现。
Find the contiguous subarray within an array (containing at least one number) which has the largest product.
For example, given the array [2,3,-2,4],
the contiguous subarray [2,3] has the largest product = 6.
208
234

被折叠的 条评论
为什么被折叠?