SP28303 ADAPLANT - Ada and Plants
Description
Ada the Ladybug has grown many plants. She was trying to grow all plants with equal size. Now she is wondering about the biggest difference between heights of two plants which are near each other. Plants are near each other, if there are at most **K** plants between them.
Input Format
The first line contains **T**, the number of test-cases. The first line of each test-case will contain **N, K**, **1 < N ,**0 where **N** indicates number of plants.****
Next line will contain **N** integers **0 indicating height of i-th plant.**
Sum of all **N** among all test-cases won't exceed **3\*106**
Output Format
For each test-case, print exactly one number - the biggest difference of plants near each other (biggest **h $ _{i} $ -h $ _{j} $** such that **|i-j|-1 ).**