Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ checkNeighbors
Function
checkNeighbors
javascript/1584-min-cost-to-connect-all-points.js:64–70 ·
view source on GitHub ↗
(graph, src, seen, minHeap)
Source
from the content-addressed store, hash-verified
62
}
63
64
const
checkNeighbors = (graph, src, seen, minHeap) => {
65
for
(
const
[ dst, dstCost ] of graph[src]) {
66
if
(seen[dst]) continue;
67
68
minHeap.enqueue([ dst, dstCost ], dstCost);
69
}
70
}
Callers
1
search
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected