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. 这个求最大子数组乘积问题是由最大子数组之和问题演变而来,但是却比求最大子数组之和要复
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 求任意长度数组的最大值__整数类型___方法_ { class Program { public static int Getmax( params int[]arr) { ]; ; i < arr.Length; i++) { ]) { max