Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36e0bfe

Browse files
m-maksyutintrekhleb
authored andcommitted
Fix the value returned by DisjointSet union (trekhleb#81)
* Fix LinkedList* Fix the prepend method for the LinkedList* Fix the remove method for the MinHeap* Correct a comment* Fix BST removal method* Fix the findEdge method of the graph* Fix the value returned by DisjointSet union
1 parentd69199e commit36e0bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/data-structures/disjoint-set/DisjointSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class DisjointSet {
7070
// If rootB's tree is bigger then make rootB to be a new root.
7171
rootB.addChild(rootA);
7272

73-
returnrootB.getKey();
73+
returnthis;
7474
}
7575

7676
// If rootA's tree is bigger then make rootA to be a new root.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp