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

What is data structure and its classification?

494


Why do we need linked list?

451


What is the difference between collection and collections?

542


State the difference between queues and linked lists?

542


What is an recursive algorithm?

524






Which sorting algorithm uses minimum number of swaps?

458


Tell me what is quick sort?

548


What is link list in data structure?

476


What is data structure and why we need it?

496


Can you distinguish between ArrayList and Array?

587


Which is faster arraylist or hashmap?

534


Define indegree of a graph?

680


Differentiate between collection and collections.

613


Write an algorithm to show various operations on ordered list and arrays

510


If you have to store one lakh objects, what will be a better option- a hash map or an array list?

826