Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkWingMcQuack committed Oct 28, 2021
1 parent a912897 commit d950ec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ auto main(int argc, char **argv)-> int
// UnionFind::numberOfSets returns the number of disjoint sets in the datastructure
std::size_t sets = uf.numberOfSets();

// uf contains 3 sets: {0, 1, 2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}
assert(sets == 3);
// uf contains 8 sets: {0, 1, 2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}
assert(sets == 8);

// it is also possible to call merge with any number of parameters
uf.merge(5, 6, 7, 8, 9);
Expand Down

0 comments on commit d950ec5

Please sign in to comment.