Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 does 3 mean in texting?

1102


List a few unconditional control statement in c.

988


How many levels deep can include files be nested?

1142


What is #include called?

1060


How can I sort a linked list?

1049


How to write c functions that modify head pointer of a linked list?

992


What are header files why are they important?

1094


What is void pointers in c?

1008


What is the difference between printf and scanf )?

1098


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3727


Explain what are the different data types in c?

1225


Are there constructors in c?

1011


Why do we write return 0 in c?

1063


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

2021


What is the use of parallelize in spark?

1030