mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-08 06:43:14 +08:00
Update data_structures/dsu_path_compression.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ class dsu{
|
||||
minElement[i] = i;
|
||||
}
|
||||
setSize.assign(n,0);
|
||||
//initially set size will be 1
|
||||
/// initially set size will be equals to one
|
||||
for(uint64_t i=0;i<n;i++){
|
||||
setSize[i]=1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user