For no reason in particular I decided to revisit tree traversal as a kind of programming kata. There are two main kinds of tree traversal:
- Depth first – This is where you go all the way down a tree’s branches first before bubbling up to do work.
For no reason in particular I decided to revisit tree traversal as a kind of programming kata. There are two main kinds of tree traversal: