Skip to content
RED SAG Skills
hard20 pts · first answer countssorting-and-searching

k-th smallest pair distance

Given n integers, you must find the k-th smallest absolute difference among all n(n - 1) / 2 pairs, with n up to 100,000. Which approach fits?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions