


N = 5
ARR = [ 3, -6, 7, -7, 0 ]
Out of all pairs, (-7,-6) have a difference of ‘1’, and no other pair has less difference. So ‘ANS’ is ‘1’.
The first line contains a single integer ‘T’ denoting the number of test cases. The test cases are as follows.
The first line of each test case contains integer ‘N’ denoting the size of the array ‘ARR’.
The second line contains ‘N’ integers denoting the integers of array ‘ARR’.
For each test case, print the minimum difference of all possible pairs in ‘ARR’.
You don’t need to print anything. It has already been taken care of. Just implement the given function.
1 <= T <= 10
2 <= N <= 10^5
-10^8 <= ARR[i] <= 10^8
Sum of N <= 10^5
Time Limit: 1 sec
ALGORITHM :