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

Function initGraph

javascript/0269-alien-dictionary.js:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16};
17
18var initGraph = () => ({
19 graph: new Map(),
20 frequencyMap: new Map(),
21 queue: new Queue(),
22 buffer: [],
23});
24
25var buildGraph = (words) => {
26 const { graph, frequencyMap, queue, buffer } = initGraph();

Callers 1

buildGraphFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected