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

Answer Posted / janraj cj

Use Breadth First search algorithm. This is using queue
as the data structure .

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the easiest sorting method to use?

628


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

1947


Using which language Test cases are added in .ptu file of RTRT unit testing???

3575


What do you mean by scope of a variable in c?

536


What is wrong with this program statement? void = 10;

809






What is default value of global variable in c?

554


What is c programming structure?

614


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

656


Tell me about low level programming languages.

633


Explain what standard functions are available to manipulate strings?

604


What is the difference between the = symbol and == symbol?

617


Why does not c have an exponentiation operator?

620


Does c have circular shift operators?

716


What are the parts of c program?

625


Explain the difference between ++u and u++?

633