Array consist of -1 and 1, Find count of all sub-arrays where sum = 0. Input: [-1,1,-1,1]
Output: 4 [-1,1] [1,-1],[-1,1],[-1,1,-1,1]
For given list of numbers find out triplets with sum 0 using C? Input : arr[] = {0, -1, 2, -3, 1} Output : 0 -1 1 2 -3 1