[Leetcode] 719. Find K-th Smallest Pair Distance 解题报告

题目

Given an integer array, return the k-th smallest distance among all the pairs. The distance of a pair (A, B) is defined as the absolute difference between A and B.

Example 1:

Input:
nums = [1,3,1]
k 

你可能感兴趣的:(IT公司面试习题,Leetcode,解题报告,Binary,Search,Tree,Heap)