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
What is the easiest sorting method to use?
Why is event driven programming or procedural programming, better within specific scenario?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What do you mean by scope of a variable in c?
What is wrong with this program statement? void = 10;
What is default value of global variable in c?
What is c programming structure?
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
Tell me about low level programming languages.
Explain what standard functions are available to manipulate strings?
What is the difference between the = symbol and == symbol?
Why does not c have an exponentiation operator?
Does c have circular shift operators?
What are the parts of c program?
Explain the difference between ++u and u++?