Given a sorted array of integers, return the number of distinct absolute values among the elements of the array.
The first line of input contains an integer T denoting the number of test cases.
The first line of each test case is N,N is the size of array.
The second line of each test case contains N input C[i].
Print the number of distinct absolute values.
1 ≤ T ≤ 50
1 ≤ N ≤ 100
-5000 ≤ C[i] ≤ 5000
-1 -1 0 1 2
0 0 0 0
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.