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
Decide whether a set of devices linked by cables forms a single loop-free network where every device reaches every other.
Union-Find · Easy