Guided lesson

Union Find

Graphs

See the input

Intermediate

Input for Union Find: Track disjoint sets with parent pointers, path compression, and union by rank.

A
B
C
D
E
Step 1 Almost O(1) time - O(n) space
Guided progression
6% lesson
Step 1 / 2Learner goal
Speech settings Speed 1.0 · Volume 90%

Keyboard: Space play/pause · Arrow keys step · Page Up/Down change sections · R restart