Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
18
var
initGraph = () => ({
19
graph:
new
Map(),
20
frequencyMap:
new
Map(),
21
queue:
new
Queue(),
22
buffer: [],
23
});
24
25
var
buildGraph = (words) => {
26
const
{ graph, frequencyMap, queue, buffer } = initGraph();
Callers
1
buildGraph
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected