From d78aae0a4fa5932b38599503205a0c5b4addabcb Mon Sep 17 00:00:00 2001 From: sid55 Date: Fri, 12 Oct 2018 16:19:11 +0530 Subject: [PATCH] Comment --- Union_Find.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Union_Find.py b/Union_Find.py index d06131d..a13405f 100644 --- a/Union_Find.py +++ b/Union_Find.py @@ -24,7 +24,7 @@ def union(parent, rank, x, y): elif rank[xroot] > rank[yroot]: parent[yroot] = xroot else: - parent[xroot] = yroot + parent[xroot] = yroot # if same then select any one of them as parent and increment its rank by 1 rank[yroot] += 1