MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / getKey

Method getKey

javascript/2013-detect-squares.js:35–37  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

33 };
34
35 getKey (x, y) {
36 return `${x},${y}`;
37 }
38
39 getScore (x1, y1, x2, y2, { map } = this) {
40 const [ aKey, bKey ] = [ this.getKey(x1, y2), this.getKey(x2, y1) ];

Callers 15

addMethod · 0.95
getScoreMethod · 0.95
searchMethod · 0.45
findModeMethod · 0.45
bfsMethod · 0.45
removeDuplicatesMethod · 0.45
numOfMinutesMethod · 0.45
longestDiverseStringMethod · 0.45
topKFrequentMethod · 0.45
majorityElementMethod · 0.45
leastIntervalMethod · 0.45
dfsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected