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

Function getCode

javascript/0049-group-anagrams.js:75–75  ·  view source on GitHub ↗
(char)

Source from the content-addressed store, hash-verified

73};
74
75const getCode = (char) => char.charCodeAt(0) - 'a'.charCodeAt(0);
76
77const buildHash = (frequency) => frequency.toString();

Callers 1

getHashFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected