P12722 [HackerEarth] project team
普及
题目描述

A Professor of Physics gave projects to the students of his class. The students have to form a team of two for doing the project. The professor left the students to decide the teams. The number of students in a class will be even.

Each student has a knowledge level. It tells how much knowledge each student has. The knowledge level of a team is the sum of the knowledge levels of both the students.

The students decide to form groups such that the difference between the team with highest knowledge and the one with lowest knowledge is minimum.

Input

First line of the input will contain number of test cases t; In the next t lines the first number is n the number of students in the class followed by n integers denoting the knowledge levels of the n students

Output

Your output should be a single line containing the lowest possible difference between the team with highest knowledge and the one with lowest knowledge.

SAMPLE INPUT
2
4 2 6 4 3
6 1 1 1 1 1 1

SAMPLE OUTPUT
1
0

Explanation

Input Constraints are

1 ≤ t ≤ 100
1 ≤ n ≤ 100
1 ≤ knowledge level ≤ 10000

输入格式

见题面

输出格式

见题面

样例输入
8 4 2 6 4 3 6 1 1 1 1 1 1 8 4 2 4 2 1 3 3 7 14 5 1 8 8 13 7 6 2 1 9 5 11 3 4 50 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1000 999 998 997 996 995 994 993 992 991 990 989 988 987 986 985 984 983 982 981 980 979 978 977 976 50 7 9 1 3 7 9 5 6 4 9 3 4 2 1 3 6 5 3 6 5 7 1 7 7 4 996 999 1000 992 999 997 998 994 992 999 992 998 993 994 999 995 1000 1000 998 993 999 992 998 992 1000 50 9 5 1 8 7 4 7 2 6 5 3 1 10 8 4 8 3 7 1 2 7 6 8 6 5 999 998 1000 1000 999 996 994 1000 993 999 993 993 993 993 997 997 995 991 991 992 999 992 998 994 994 50 2 9 3 3 8 1 4 4 3 4 9 4 5 3 3 1 2 9 9 3 9 9 7 5 6 1000 1000 994 1000 993 993 999 992 993 993 993 994 994 996 992 998 997 992 992 995 1000 999 1000 995 993
样例输出
1 0 2 3 0 4 2 5