Redundant Connection (Union-Find)
Find edge that creates a cycle (Nodes 1-indexed).
Node
Processed Edge
Redundant Edge
Result Edge
-
Parent Array
當前步驟
Ready.
步驟 0 / 0
邏輯解釋
C++ Code