Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How is the output for [0, 0] -1 true?
Sum of 0+0 is 0 which is not a multiple of -1. How is it true?
@kairav2 0 is a multiple of every integer. 0*k = 0 for all k integers. So for any k and getting a subarray sum of 0 will return true,
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.