Problem 493 · Hard

Reverse Pairs

Count pairs where i < j and nums[i] > 2*nums[j] using merge sort.

Open the interactive visualisation