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

Function getCode

javascript/0567-permutation-in-string.js:45–45  ·  view source on GitHub ↗
(char)

Source from the content-addressed store, hash-verified

43};
44
45const getCode = (char) => char.charCodeAt(0) - 'a'.charCodeAt(0);
46
47const addRightFrequency = (s, right, frequencyMap) => {
48 const char = s[right];

Callers 3

getFrequencyMapsFunction · 0.70
addRightFrequencyFunction · 0.70
subtractLeftFrequencyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected