Skip to content

Commit

Permalink
🧑‍💻 improves dsu implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
iagorrr committed Nov 24, 2023
1 parent 49b6ca6 commit d815efa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions algorithms/data-structures/dsu.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
struct DSU {
vi ps;
vi size;
vi ps, size;

// vector<unordered_set<int>> sts;
DSU(int N) : ps(N + 1), size(N, 1), sts(N) {
DSU(int N) : ps(N + 1), size(N, 1) /*, sts(N)*/ {
iota(all(ps), 0);
// for (int i = 0; i < N; i++) sts[i].insert(i);
}
Expand Down

0 comments on commit d815efa

Please sign in to comment.