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

Answer Posted / sanjeevi

in order:lRr
preorder:Rlr
postorder:lrR
l:left
r:right
R:root

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you store different types in an array?

472


Is array a linked list?

483


Which interfaces are implemented by linkedlist?

510


What is mean by merge sort?

510


Define a relation?

550






What is the difference between null and void?

535


What is a treeset?

485


State the difference between arrays and linked lists?

544


Write the stack overflow condition.

594


What are different sorting algorithms?

487


What are different techniques for making hash function? Explain with example.

550


Why sorting is done?

500


Tell me do array subscripts always start with zero?

508


Explain what is B-tree?

565


Differentiate between priorityqueue and treeset.

745