Graph Valid Tree — Union-Find

Decide whether a set of devices linked by cables forms a single loop-free network where every device reaches every other.

Union-Find · Easy

More in Union-Find

All algorithm problems