Pattern2 visualizers
Union Find (DSU) Pattern Visualizers
The Union Find (DSU) pattern is a recurring algorithmic shape that appears across coding interviews and competitive problems. Use it when the problem geometry matches its trigger conditions — recognizing the pattern collapses what looks like a hard problem into a familiar template. These visualizers trace Union Find (DSU) step-by-step on classics such as Number of Operations to Make Network Connected, Redundant Connection, so you can internalize the moves before you ever need them under pressure.
Graphs
Number of Operations to Make Network Connected
Count isolated network clusters using DSU and determine the minimum number of cables needed to bridge them.
Open visualizer →
Graphs
Redundant Connection
Use a Disjoint Set Union (DSU) structure to identify exactly which edge mathematically creates a cycle in a tree structure.
Open visualizer →