Update data_structures/dsu_path_compression.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Aayush Vyas
2021-09-04 08:25:48 +05:30
committed by GitHub
parent 7ca8fce285
commit e53b31f4e9

View File

@@ -43,7 +43,7 @@ class dsu{
*/
explicit dsu(uint64_t n){
p.assign(n,0);
//initially all of them are their own parents.
/// initially, all of them are their own parents
for(uint64_t i=0;i<n;i++){
p[i] = i;
}