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
Difference between goto, long jmp() and setjmp()?
What is the use of in c?
Explain the red-black trees?
Explain how to reverse singly link list.
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Write a program with dynamically allocation of variable.
what is reason of your company position's in india no. 1.
When should I declare a function?
How would you obtain the current time and difference between two times?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What is cohesion and coupling in c?
Explain how can I make sure that my program is the only one accessing a file?
How does placing some code lines between the comment symbol help in debugging the code?
How do you print only part of a string?
Does * p ++ increment p or what it points to?