• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tree Traversal

 
Rajeev Ja
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which is the best tree traversal method(inorder,preorder or postorder)
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an advanced question.

There is no such thing as a "best" traversal method. It depends which order you want to see the members in.
A quick google search revealed this, this, and this site.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic