摘要: 问题: 给定一个数组nums,若 i < j, nums[i] > 2*nums[j],则称这一对 i,j为important reverse pair 求给定数组中,有多少组important reverse pair。 Example1: Input: [1,3,2,3,1] Output: 2 阅读全文
posted @ 2020-08-02 17:45 habibah_chang 阅读(130) 评论(0) 推荐(0) 编辑