Skip to content

Latest commit

 

History

History
executable file
·
10 lines (7 loc) · 351 Bytes

File metadata and controls

executable file
·
10 lines (7 loc) · 351 Bytes

题目

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.

解题思路

见程序注释