GraphsEvidence Contributing
Union-Find / Disjoint Set
Maintain disjoint sets with union and find operations to detect connectivity or cycles as edges are processed.
Practice Problems: 4
Difficulty: 0 Easy·3 Medium·1 Hard
Core technique
Review the technique, then try the mapped problems below. The right approach depends on each problem's constraints.
- Core Strategy: Maintain disjoint sets with union and find operations to detect connectivity or cycles as edges are processed.