Week 4 · Day 27 of 42

Graph: Union Find

Track connected components with parent[] and rank[] arrays.

Checking access

Spotted a mistake on this page?

Wrong formula, broken animation or confusing wording. Tell us and we will fix it.