mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-08 06:43:14 +08:00
Update data_structures/dsu_union_rank.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -155,7 +155,7 @@ static void test1() {
|
|||||||
* @returns void
|
* @returns void
|
||||||
*/
|
*/
|
||||||
static void test2() {
|
static void test2() {
|
||||||
/* checks the parents in the resultant structures */
|
// checks the parents in the resultant structures
|
||||||
uint64_t n = 10; ///< number of elements
|
uint64_t n = 10; ///< number of elements
|
||||||
dsu d(n + 1); ///< object of class disjoint sets
|
dsu d(n + 1); ///< object of class disjoint sets
|
||||||
d.unionSet(2, 1); /// performs union operation on 1 and 2
|
d.unionSet(2, 1); /// performs union operation on 1 and 2
|
||||||
|
|||||||
Reference in New Issue
Block a user