by jiangshan @jiangshanmeta
Given an integer array nums, return the number of reverse pairs in the array.
A reverse pair is a pair (i, j) where:
- 0 <= i < j < nums.length and
- nums[i] > nums[j].
by jiangshan @jiangshanmeta
Given an integer array nums, return the number of reverse pairs in the array.
A reverse pair is a pair (i, j) where: