摘要: 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 bet 阅读全文
posted @ 2017-12-02 02:55 jxr041100 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Given two integers n and k, find how many different arrays consist of numbers from 1 to n such that there are exactly k inverse pairs. We define an in 阅读全文
posted @ 2017-12-02 02:46 jxr041100 阅读(149) 评论(0) 推荐(0) 编辑