Tree traversals

easy

The three depth-first orders run the same two recursive calls; all that changes is where `visit` sits. Swap the stack for a queue and depth-first becomes breadth-first.

Worst O(n)Space O(h) for the stack
Loading the tree traversals engine…

Where to go next