Skip to content

Commit d804734

Browse files
authored
Update cf-468B.mdx
1 parent ed5adce commit d804734

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solutions/gold/cf-468B.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ We can treat each set as a graph with several connected components. For each $p_
3535
using namespace std;
3636

3737
// BeginCodeSnip{DSU}
38-
class DisjointSets {
38+
class DSU {
3939
private:
4040
vector<int> parents;
4141
vector<int> sizes;
4242

4343
public:
44-
DisjointSets(int size) : parents(size), sizes(size, 1) {
44+
DSU(int size) : parents(size), sizes(size, 1) {
4545
for (int i = 0; i < size; i++) { parents[i] = i; }
4646
}
4747

0 commit comments

Comments
 (0)