MCPcopy Index your code
hub / github.com/neetcode-gh/leetcode / equals

Method equals

java/0920-number-of-music-playlists.java:45–51  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

43 }
44
45 @Override
46 public boolean equals(Object obj) {
47 if (this == obj) return true;
48 if (obj == null || getClass() != obj.getClass()) return false;
49 Pair pair = (Pair) obj;
50 return a == pair.a && b == pair.b;
51 }
52
53 @Override
54 public int hashCode() {

Callers 15

openLockMethod · 0.80
isValidMethod · 0.80
calPointsMethod · 0.80
evalRPNMethod · 0.80
bfsMethod · 0.80
gcdOfStringsMethod · 0.80
ladderLengthMethod · 0.80
longestDiverseStringMethod · 0.80
leafSimilarMethod · 0.80
deserializeDFSMethod · 0.80
partitionMethod · 0.80
checkInclusionMethod · 0.80

Calls

no outgoing calls

Tested by 1

gcdOfStringsMethod · 0.64