Update data_structures/dsu_union_rank.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Aayush Vyas
2021-09-06 07:38:36 +05:30
committed by GitHub
parent 690d310f5f
commit 38542ac347

View File

@@ -142,7 +142,7 @@ static void test1() {
///keeping track of the changes using parent pointers
vector<uint64_t> ans = {7,5};
for(uint64_t i=0;i<ans.size();i++){
assert(d.getParents(7).at(i) == ans[i]); ///makes sure algorithm works fine
assert(d.getParents(7).at(i) == ans[i]); // makes sure algorithm works fine
}
cout << "1st test passed!"<<endl;
}