Jumping Across Logs
InterviewTime limit1sMemory limit256 MB
Arrange the given log heights in a circle to minimize the largest height gap between neighbors.
Problem
Namgyu likes to stand logs upright and jump from one to the next. He stands N logs in a circle and jumps only to a log next to the one he is on, so he wants to arrange the logs so that the height difference between neighbours stays as small as possible.

The difficulty of the circle is the largest height difference between two neighbouring logs. Suppose the five logs have heights 2, 4, 5, 7 and 9. Standing them in the order also puts the first log next to the last one, so the log of height 2 touches the log of height 5. That arrangement has difficulty . The better arrangement has difficulty , and no arrangement has a lower difficulty, so 4 is the answer.
Given the heights of the logs, find the smallest difficulty of any circular arrangement.
Input
The first line contains the number of test cases T.
Each test case takes two lines. The first line contains the number of logs N (). The second line contains the N log heights (), separated by spaces.
Output
For each test case, print the smallest difficulty on its own line.