Update data_structures/dsu_path_compression.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Aayush Vyas
2021-09-01 07:15:07 +05:30
committed by GitHub
parent 78a22f18e9
commit d70f903f30

View File

@@ -114,8 +114,8 @@ class dsu{
* same set or not
* @param i element of some set
* @param j element of some set
* @returns `true` if element i and j are in same set
* @returns `false` if element i and j are not in same set
* @returns `true` if element `i` and `j` ARE in the same set
* @returns `false` if element `i` and `j` are NOT in same set
*/
bool isSame(int i,int j){
if(findSet(i) == findSet(j)){