mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-11 14:36:25 +08:00
Update data_structures/dsu_path_compression.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -47,7 +47,7 @@ class dsu{
|
||||
for(uint64_t i=0;i<n;i++){
|
||||
p[i] = i;
|
||||
}
|
||||
//initially all have depth =0
|
||||
/// initially all have depth are equals to zero
|
||||
depth.assign(n,0);
|
||||
maxElement.assign(n,0);
|
||||
minElement.assign(n,0);
|
||||
|
||||
Reference in New Issue
Block a user