mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-10 22:15:57 +08:00
Update data_structures/dsu_path_compression.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user