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...

There are 8, 15, 13, 14 nodes were there in 4 different trees. Which of them could have formed a full binary tree?

Answer Posted / rohit sah

15.

In general:
There are 2n-1 nodes in a full binary tree.
By the method of elimination:
Full binary trees contain odd number of nodes. So there cannot be full binary trees with 8 or 14 nodes, so rejected. With 13 nodes you can form a complete binary tree but not a full binary tree. So the correct answer is 15.

Note: Full and Complete binary trees are different. All full binary trees are complete binary trees but not vice versa.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which of the collections allows null as the key?

926


What is the use of prototype?

961


What is unhashable type list?

898


What are types of Collision Resolution Techniques and the methods used in each of the types?

1127


Define threaded binary tree. Explain its common uses

929


Advanced problems related to Data Structures were asked

977


What does isempty() member method determines?

983


How do you reference all the elements in a one-dimension array?

1088


How to pass in data structure exam?

1074


Write code for reversing a linked list.

1007


Define linear data structures?

1051


Mention for which header list, you will found the last node contains the null pointer?

900


How much time does it take to learn data structures?

970


What is the difference between hashset and arraylist?

1043


Is it possible to increase size of array?

999