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

Answer Posted / vidhun s

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

Is This Answer Correct ?    34 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe tree database. Explain its common uses.

555


Write a program using mergesort technique.

543


What is difference between array and arraylist?

516


What is doubly linked list?

553


Will it create any problem if we add elements with key as user defined object into the treemap?

525






Write the recursive c function to count the number of nodes present in a binary tree.

485


What thread means?

506


What is thread and types of thread?

518


For addition and deletion. Which one is most preferred: array list or linked list?

512


What are the properties of binary heap?

551


Is treeset sorted?

527


What do you mean by selection sort?

490


Will hashmap allow null keys?

506


Which interfaces are implemented by linkedlist?

510


What sorting algorithm does arrays sort use?

460