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:
@@ -83,7 +83,7 @@ class dsu{
|
|||||||
* @returns void
|
* @returns void
|
||||||
*/
|
*/
|
||||||
void UnionSet(uint64_t i,uint64_t j){
|
void UnionSet(uint64_t i,uint64_t j){
|
||||||
//check if both belongs to same set or not
|
/// check if both belongs to the same set or not
|
||||||
if(isSame(i,j)){
|
if(isSame(i,j)){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user