Week 4 · Day 23 of 42

Tree: BFS

Use a queue. Process all nodes at the current level before moving to the next.

Checking access

Spotted a mistake on this page?

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