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 do you empty an arraylist?

500


What is a singletonlist?

492


What are binary trees?

586


How do you declare A pointer to array of three chars

532


What is the minimum number of queues that can be used to implement a priority queue?

522






What is the difference between Array and Arraylist?

610


Why do we use binary search?

483


Can treemap key null?

589


Which collection class is thread safe?

444


Is hashmap get thread safe?

480


What are the disadvantages of linked list over array?

465


how to delete first node from singly linked list?

637


What is a pass in bubble sort?

491


Can you use Bubble Sort To sort the number of elements.

504


How do you make a bubble chart with 3 variables?

470