How would you print out the data in a binary tree, level by
level, starting at the top?

Answer Posted / sridhar

By using inorder,preorder,postorder.the data may print as
LDR,DLR,LRD.this only the chance to print data in a bionary
tree.

Is This Answer Correct ?    4 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

799


Explain what is meant by 'bit masking'?

638


What kind of structure is a house?

550


Why is event driven programming or procedural programming, better within specific scenario?

1949


What are qualifiers?

613






What is dynamic dispatch in c++?

552


Explain how do you determine a file’s attributes?

588


Why is it important to memset a variable, immediately after allocating memory to it ?

1550


Is null a keyword in c?

728


What is the best way of making my program efficient?

561


What is the size of empty structure in c?

589


What does stand for?

590


What is the correct code to have following output in c using nested for loop?

609


What are the benefits of c language?

641


Can we increase size of array in c?

534