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

What is the use of placement new?

588


How does selection sort work?

547


Which is faster hashset or treeset?

503


What is arraylist load factor?

521


What are vectors used for in real life?

475






Explain what are the methods available in storing sequential files ?

493


What is internal and external sorting?

501


What is ascending and descending order?

500


How can we delete any specific node from the linked list?

504


What is linear-logarithm chasm?

542


Write the importance of hashing?

602


which is the simplest file structure? (Sequential, indexed, random)

787


What do you mean by data types?

528


Which sorting algorithm is considered the fastest?

595


What are the different types of hash functions?

496