union-find-uses-path-splitting

Status: IN

The `find` function in `find-if-path-exists-in-graph/solution.py` uses iterative path splitting (`parent[x] = parent[parent[x]]`), which halves path length per traversal, not full recursive path compression that flattens to the root.

Source: entries/2026/06/06/find-if-path-exists-in-graph-solution.md

JSON