You are given two arrays A,B, each containing N integers. You want to minimize the maximum absolute difference between two adjacent integers of the array A (i.e. maxN−1i=1∣Ai−Ai+1∣). You can do the following operation atmost K times:
Find the minimum possible value of maxN−1i=1∣Ai−Ai+1∣.
Input format
Output format
For each test case, print the minimum possible value of maxN−1i=1∣Ai−Ai+1∣.
Constraints
1≤T≤1042≤N≤1051≤K≤N1≤Ai≤109SumofNoveralltestcasesdoesnotexceed2⋅105.
In the first test case, applying the operation on index i = 2 makes A = [5, 3]. Thus the answer is |5 - 3| = 2.
In the second test case, applying the operation on index i = 2 and index i = 4 makes A = [5, 7, 4, 3]. Thus the answer is max(|5 - 7|, |7 - 4|, |4 - 3|) = max(2, 3, 1) = 3.