MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / increaseRank

Method increaseRank

javascript/0684-redundant-connection.js:84–86  ·  view source on GitHub ↗
(head, tail, { rank } = this)

Source from the content-addressed store, hash-verified

82 }
83
84 increaseRank(head, tail, { rank } = this) {
85 rank[head] += rank[tail];
86 }
87
88 union(src, dst, { rank } = this) {
89 const [rootSrc, rootDst] = [this.find(src), this.find(dst)];

Callers 1

unionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected