Back to Question

Reverse Pairs

Question Explain

Given an array `nums`, return the number of 'reverse pairs' where $i < j$ and $nums[i] > 2 \cdot nums[j]$. This requires a modified Merge Sort approach.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.