Search⌘ K
AI Features

Reverse Pairs

Reverse Pairs asks you to count array index pairs where the first position comes earlier and its value is more than twice the later value, including negative numbers.

Statement

You are given an integer array, nums. Your task is to count how many reverse ...