AlgoViz

Tree BFS (level-order traversal)

medium 16 min

Breadth-first search visits a tree one level at a time, left to right, using a queue.