Skip to content

Commit 7444572

Browse files
authored
bug
1 parent 115bab3 commit 7444572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solutions/advanced/ys-PersistentUnionFind.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct DSU {
3838
if (sz[a] < sz[b]) { swap(a, b); }
3939
// add to history
4040
past_parent.push_back({b, p[b]});
41-
past_size.push_back({a, p[a]});
41+
past_size.push_back({a, sz[a]});
4242

4343
if (a != b) {
4444
p[b] = a;

0 commit comments

Comments
 (0)