Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How will inorder, preorder and postorder traversals print
the elements of a tree?

Answer Posted / meenakshi

INORDER:: LNR
PREORDER:: NLR
POSTORDER::LRN
here L stands for the leftnode of the tree R stands for the
right node of the tree and N stands for the root node of
that tree.

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to fill element (initialize at once) in an array?

986


Explain merge sort algorithms.

956


What is array and its types with example?

882


What is difference between hashmap and linkedhashmap?

864


Difference between calloc and malloc in data structures?

867


What stack means?

874


How can you insert a node in a random location of the linked list?

858


What is a spanning tree in data structure?

931


What is the difference between sorting and classifying?

895


Why sorting algorithms are important?

911


Does treeset allow null values?

852


Which is better merge or quick sort?

909


A lot of data structures related programs related to only trees and graphs, like the diameter of a tree, removing the loops in a graph etc.

996


What are the tasks performed during inorder traversal?

929


Is hashmap fail safe?

934