Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ compress
Method
compress
javascript/0684-redundant-connection.js:80–82 ·
view source on GitHub ↗
(tail, head, { parent } = this)
Source
from the content-addressed store, hash-verified
78
}
79
80
compress(tail, head, { parent } = this) {
81
parent[tail] = head;
82
}
83
84
increaseRank(head, tail, { rank } = this) {
85
rank[head] += rank[tail];
Callers
2
find
Method · 0.95
union
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected