Union-Find (Disjoint Set) Pattern in Java - Interview Preparation Guide Mar 27, 2026 6 min read DSA Java