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 a struct c#?

609


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2035


Why we use conio h in c?

595


What is the purpose of realloc()?

680


Write a code on reverse string and its complexity.

618






Explain how do you print an address?

670


Explain what is a const pointer?

645


Differentiate between the = symbol and == symbol?

726


How many keywords (reserve words) are in c?

630


What is the significance of scope resolution operator?

869


Explain how many levels deep can include files be nested?

632


Can the “if” function be used in comparing strings?

603


Which function in C can be used to append a string to another string?

652


Why clrscr is used in c?

595


How to set file pointer to beginning c?

678