Skip to content

Union by Rank or Size

Hang the smaller tree under the bigger one and depth barely grows.

Lesson 3 of 4 · 5 min

Free account

Sign in to keep going. It is free.

The first 2 lessons of every module open without an account. Sign in for the rest — every lesson is free on an account, and your progress follows you between devices.

Sign in with a link

Not ready to sign in? Back to Union-Find — its first 2 lessons are open without an account.