Please tell why my code is not passing any of the test cases
Consider the case of 4 elements: 2, -2 , 3 , -3. Then, there are three subarrays whose sum is 0.
your code shows 0 .correct this
Consider the case of 4 elements: 2, -2 , 3 , -3. Then, there are three subarrays whose sum is 0.
your code shows 0 .correct this