MST / Union-Find pattern
Kruskal sorts edges, Prim grows one tree, and Union-Find maintains component membership during joins.
Difficulty: Medium · Approach: Visible frontier and visited order
This is a public lesson preview. Sign in with a Lifetime Pass to open the protected animation, solution, and code.