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

Answer Posted / sankar

in order:LOR
pre order:OLR
post order:LRO
L=LEFT CHILD
R=RIGHT CHILD
O=ROOT NODE

Is This Answer Correct ?    15 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is placement new in data structures?

530


Where will be the free node available while inserting a new node in a linked list?

580


What thread means?

506


Write a program for Sorting an Array. Which sorting will you prefer?

595


What is sorting in data structure?

489






What are the properties of binary tree?

518


What are vectors used for in real life?

482


Mention for which header list, you will found the last node contains the null pointer?

500


What is the difference between list and arraylist?

461


Why is hashset not ordered?

511


How do you sort an arraylist?

491


What is the difference between arraylist and linkedlist?

491


What is the family trees and connection by clause?

496


what is a balanced tree.

597


Is quicksort a stable sorting algorithm?

540