...

/

Find K-th Smallest Pair Distance

Find K-th Smallest Pair Distance

Try to solve the Find K-th Smallest Pair Distance problem.

Statement

Given an array of integers nums and an integer k, return the kthk^{th} smallest distance between any pair of integers (nums[i], nums[j]), where 00 \leq i << j << num.length.

The distance between a pair of integers, aa and ...