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 24c2697 commit fa750edCopy full SHA for fa750ed
src/main/java/g3201_3300/s3273_minimum_amount_of_damage_dealt_to_bob/Solution.java
@@ -32,28 +32,6 @@ private static class Pair implements Comparable<Pair> {
32
this.val = val;
33
}
34
35
- @Override
36
- public boolean equals(Object o) {
37
- if (this == o) {
38
- return true;
39
- }
40
- if (o == null || getClass() != o.getClass()) {
41
- return false;
42
43
- Pair pair = (Pair) o;
44
- return key == pair.key && val == pair.val;
45
46
-
47
48
- public int hashCode() {
49
- return key ^ val;
50
51
52
53
- public String toString() {
54
- return "[" + key + " - " + val + "]";
55
56
57
@Override
58
public int compareTo(Pair p) {
59
return val * p.key - key * p.val;
0 commit comments