| Action | Tickets Earned |
|---|---|
Complete Daily Challenge | +1 |
10-Day Streak | +10 |
20-Day Streak | +20 |
30-Day Streak | +30 |
LinkedIn post with #30DaysofCode Everyday (and tag Educative) | +2 per post |
Most-Liked Post Overall | +20 |
Top of Leaderboard | +50 |
Leaderboard: 2nd place | +30 |
Leaderboard: 3rd place | +20 |
You are given an integer array, nums. Your task is to count how many reverse pairs exist in the array and return the total number of such pairs.
A reverse pair is defined as a pair of indexes
nums.length, and
nums[i] nums[j].
Constraints:
nums.length
nums[i]
| Action | Tickets Earned |
|---|---|
Complete Daily Challenge | +1 |
10-Day Streak | +10 |
20-Day Streak | +20 |
30-Day Streak | +30 |
LinkedIn post with #30DaysofCode Everyday (and tag Educative) | +2 per post |
Most-Liked Post Overall | +20 |
Top of Leaderboard | +50 |
Leaderboard: 2nd place | +30 |
Leaderboard: 3rd place | +20 |
You are given an integer array, nums. Your task is to count how many reverse pairs exist in the array and return the total number of such pairs.
A reverse pair is defined as a pair of indexes
nums.length, and
nums[i] nums[j].
Constraints:
nums.length
nums[i]