Input: Integer array.
Output: Count of pairs where nums[i] > 2*nums[j] and i < j.
Example: [1,3,2,3,1] → 2 pairs.
Constraints: nums.length .
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
The problem
Input: Integer array.
Output: Count of pairs where nums[i] > 2*nums[j] and i < j.
Example: [1,3,2,3,1] → 2 pairs.
Constraints: nums.length .