Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/neetcode-gh/leetcode
/ connectNode
Method
connectNode
javascript/0146-lru-cache.js:53–56 ·
view source on GitHub ↗
(node, top)
Source
from the content-addressed store, hash-verified
51
}
52
53
connectNode(node, top) {
54
node.prev = top.prev;
55
node.next = top.next;
56
}
57
58
get(key) {
59
const
hasKey = this.map.has(key);
Callers
1
moveToFront
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected