This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tree Traversal  RSS feed

 
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
Marshal
Posts: 55698
163
  • 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
Boost this thread!