We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 306b4df commit 52dc52dCopy full SHA for 52dc52d
src/test/java/com/thealgorithms/datastructures/disjointsetunion/DisjointSetUnionTest.java
@@ -117,9 +117,6 @@ public void testPathCompression() {
117
dsu.unionSets(node1, node2);
118
dsu.unionSets(node2, node3);
119
120
- // Before path compression, parent of node3 might not be node1 directly
121
- Node<Integer> parentBefore = node3.parent;
122
-
123
// After findSet, path compression should update parent to root directly
124
Node<Integer> root = dsu.findSet(node3);
125
assertEquals(root, node1);
0 commit comments