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

Function getCode

javascript/0424-longest-repeating-character-replacement.js:78–78  ·  view source on GitHub ↗
(char)

Source from the content-addressed store, hash-verified

76};
77
78const getCode = (char) => char.charCodeAt(0) - 'A'.charCodeAt(0);

Callers 2

addRightFrequencyFunction · 0.70
subtractLeftFrequencyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected