Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60856da

Browse files
gampujakobkogler
authored andcommitted
Fixed a bug in implementation (#414)
1 parent 07bbf96 commit 60856da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data_structures/disjoint_set_union.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Therefore the complexity will be $O(\log n)$ per union (which is also quite fast
273273
Implementation:
274274
275275
```cpp
276-
for (int i = 0; i < L; i++) {
276+
for (int i = 0; i <= L; i++) {
277277
make_set(i);
278278
}
279279

0 commit comments

Comments
 (0)