File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
src/main/java/g3601_3700/s3636_threshold_majority_queries Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 6
6
import java .util .HashMap ;
7
7
import java .util .List ;
8
8
import java .util .Map ;
9
- import java .util .Objects ;
10
9
import java .util .TreeSet ;
11
10
12
11
class Solution {
@@ -27,23 +26,6 @@ public int compareTo(FreqPair other) {
27
26
}
28
27
return Integer .compare (other .value , this .value );
29
28
}
30
-
31
- @ Override
32
- public boolean equals (Object o ) {
33
- if (this == o ) {
34
- return true ;
35
- }
36
- if (o == null || getClass () != o .getClass ()) {
37
- return false ;
38
- }
39
- FreqPair fp = (FreqPair ) o ;
40
- return count == fp .count && value == fp .value ;
41
- }
42
-
43
- @ Override
44
- public int hashCode () {
45
- return Objects .hash (count , value );
46
- }
47
29
}
48
30
49
31
// A helper class to store a query's range and its original index.
You can’t perform that action at this time.
0 commit comments