you give array point contain coordinate point 2D plane sort xvalues pointsi xi yi xi xj 1 j pointslength you give integer kReturn maximum value equation yi yj xi xj xi xj k 1 j pointslengthIt guarantee exist pair point satisfy constraint xi xj k Example 1input point 1320510610 k 1output 4explanation the point satisfy condition xi xj 1 calculate equation 3 0 1 2 4 third fourth point satisfy condition value 10 10 5 6 1no pair satisfy condition return max 4 1example 2input point 003092 k 3output 3explanation only point absolute difference 3 xvalues value 0 0 0 3 3 constraints2 pointslength 105pointsilength 2108 xi yi 1080 k 2 108xi xj 1 j pointslengthxi form strictly increase sequence