
N = 3
ARR = [ 1, -1, 0 ]
Ninja can have Rakhi with values 1 and 0 tied to his hand so that total sum is 1.
So, we output 2 as the maximum Rakhis.
The first line contains an integer 'T' which denotes the number of test cases to be run. Then the test cases follow.
The first line of each test case contains integer ‘N’.
The second line contains ‘N’ space separated integers denoting the elements of array ‘ARR’.
For each test case, print an integer denoting the maximum Rakhis Ninja can get tied.
Print the output of each test case in a new line.
You don’t need to print anything. It has already been taken care of. Just implement the given function.
1 <= T <= 10
1 <= N <= 10^4
-10^9 <= ARR[i] <= 10^9
Time Limit : 1 sec
Algorithm :