Link Details

Link 925181 thumbnail
User 355617 avatar

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.
  • 1
  • 0
  • 91
  • 26

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (0)



    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java