The test cases don't include the case of more than one only-zeros array. My code works for all the given test cases but fails the case when it's an array of more than one only-zeros e.g. [0, 0, 0].
(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.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results