Search⌘ K
AI Features

Find K-th Smallest Pair Distance

Find K-th Smallest Pair Distance asks you to return the k-th smallest absolute difference among all pairs of values in an integer array, using each pair of distinct positions once.

Statement

Given an array of integers nums and an integer k, return the ...