Skip to content

Commit e5f8b59

Browse files
committed
1971-find-if-path-exists-in-graph-2.md Reworded.
1 parent b2f958f commit e5f8b59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/1001-2000/1971-find-if-path-exists-in-graph-2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ class Solution:
101101

102102
### Another UnionFind algorithm (using a map and an array of set)
103103
* This solution is slower than the `standard UnionFind algorithm`, but it is straightforward.
104-
* The applicability of this solution is not as wide as the `standard UnionFind algorithm` because data in a set don't have association.
105-
The `standard UnionFind algorithm` has a `parent` array with association of nodes.
104+
* The applicability of this solution is not as wide as the `standard UnionFind algorithm` because data in a set don't have association, yet the `standard UnionFind algorithm` has a `parents` array with association of nodes.
105+
* The `standard UnionFind algorithm` should be the first choice instead of this one.
106106

107107
```python
108108
class Solution:

0 commit comments

Comments
 (0)