By piccoloprincipe
via michaelfeathers.typepad.com
Submitted: Feb 17 2013 / 07:03
Trees are wonderful data structures, but traversing them can often be a pain. You can use recursion, as you long as you are confident that you won't overflow your stack. But, if you want to do anything non trivial when you've found the nodes you care about, it can be hard to keep that work separate from the traversal code.
Add your comment