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 a struct c#?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Why we use conio h in c?
What is the purpose of realloc()?
Write a code on reverse string and its complexity.
Explain how do you print an address?
Explain what is a const pointer?
Differentiate between the = symbol and == symbol?
How many keywords (reserve words) are in c?
What is the significance of scope resolution operator?
Explain how many levels deep can include files be nested?
Can the “if” function be used in comparing strings?
Which function in C can be used to append a string to another string?
Why clrscr is used in c?
How to set file pointer to beginning c?