Shouldn't it be -1? There is no contiguous number in this array except for itself.
the expected output should be 1 because (-1) * (-1) = 1 and 1 > -1
BUt -1 and -1 are not contiguous subarray.
i think they are. maybe you understand it as "consecutive" (1,2,3)?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.