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

Answer Posted / kayalvizhi jayavel

Inorder: Left, Node, Right
Preorder: Node, Left, Right
Postorder: Left, Right, Node

Is This Answer Correct ?    30 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Compare Queue and Topic ?

663


What's difference between stack and queue?

544


What is adt in data structure with example?

513


What are the tasks performed while traversing a binary tree?

618


What do you mean by Syntax Error

560






What sorting algorithm should be used for sorting strings?

536


Is quicksort recursive?

544


What is time complexity of sorting algorithms?

523


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

505


What is the use of bubble sort?

524


Define a stack?

597


What is doubly linked list?

549


Write a program to insert an element and in the specific position in the array?

530


Define an algorithm. What are the properties of an algorithm? What are the types of algorithms?

529


Is set sorted?

497