the distance pair integer b define absolute difference bGiven integer array num integer k return kth small distance pair numsi numsj 0 j numslength Example 1input num 131 k 1output 0explanation here pairs13 211 031 2Then 1st small distance pair 11 distance 0example 2input num 111 k 2output 0example 3input num 161 k 3output 5 Constraintsn numslength2 n 1040 numsi 1061 k n n 1 2