Algorithms

Root

The top node of a tree, the only one with no parent. From it you reach all the others.

Example

In an org chart, the director is the root: the other 49 employees hang from them, directly or indirectly.

Test yourself: Root

Binary trees

A tree with n nodes has ___ edges.

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.