We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3108712 commit aa61585Copy full SHA for aa61585
src/main/java/com/fishercoder/solutions/_493.java
@@ -2,26 +2,6 @@
2
3
import java.util.Arrays;
4
5
-/**
6
- * 493. Reverse Pairs
7
- *
8
- * Given an array nums, we call (i, j) an important reverse pair if i < j and nums[i] > 2*nums[j].
9
-
10
- You need to return the number of important reverse pairs in the given array.
11
12
- Example1:
13
14
- Input: [1,3,2,3,1]
15
- Output: 2
16
- Example2:
17
18
- Input: [2,4,3,5,1]
19
- Output: 3
20
21
- Note:
22
- The length of the given array will not exceed 50,000.
23
- All the numbers in the input array are in the range of 32-bit integer.
24
- */
25
public class _493 {
26
27
public static class Solution1 {
0 commit comments