From 377c5763b8f80713f77fe462e1b75696253c2d70 Mon Sep 17 00:00:00 2001 From: ygu325 Date: Thu, 9 Oct 2025 15:49:02 -0400 Subject: [PATCH] more concise --- .../0684.\345\206\227\344\275\231\350\277\236\346\216\245.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/problems/0684.\345\206\227\344\275\231\350\277\236\346\216\245.md" "b/problems/0684.\345\206\227\344\275\231\350\277\236\346\216\245.md" index 2f939d0827..b447cc6bab 100755 --- "a/problems/0684.\345\206\227\344\275\231\350\277\236\346\216\245.md" +++ "b/problems/0684.\345\206\227\344\275\231\350\277\236\346\216\245.md" @@ -266,7 +266,7 @@ class Solution: p[i] = find(p[i]) return p[i] for u, v in edges: - if p[find(u)] == find(v): + if find(u) == find(v): return [u, v] p[find(u)] = find(v) ```