Find the k-th smallest distance among all pairs of elements in the array.
Example 1
Input: nums = [1,3,1], k = 1
Output: 0
Explanation: The minimum distance between a pair is 0.
Output: 0
Explanation: The minimum distance between a pair is 0.
Example 2
Input: nums = [1,1,1], k = 2
Output: 0
Explanation: The second smallest minimum distance is 0.
Output: 0
Explanation: The second smallest minimum distance is 0.