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 are the 3 types of variables?

503


Draw the B-tree of order 3 created by inserting the following data arriving in sequence – 92 24 6 7 11 8 22 4 5 16 19 20 78

1120


What is complexity of bubble sort?

517


Why sorting is used?

524


What is the difference between data type and data structure?

460






What are linked lists used for?

531


Is Arraylist faster than Array? Why?

534


What is data and its type?

490


What is the main advantage of a linked list?

495


Define parent node?

547


What is the difference between array sort () and array sort t >()?

457


What is hashing technique?

539


What is the difference between the hash table and hash map?

516


Differentiate between iterable and iterator.

675


Explain multiply linked list in short.

527