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?



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

Answer / 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

More Data Structures Interview Questions

Does linked list allow null values?

0 Answers  


What do you mean by separate chaining?

0 Answers  


Differentiate between an array and an arraylist.

0 Answers  


Describe the height term in a tree.

0 Answers  


What is the application of queue?

0 Answers  


How can you correct these errors?

0 Answers  


Can arraylist have null values?

0 Answers  


What is the height of an empty tree?

0 Answers  


List some applications of multilinked structures?

0 Answers  


Which is the slowest sorting algorithm?

0 Answers  


Which one is faster? A binary search of an orderd set of elements in an array or a sequential search of the elements.

22 Answers   Syntel, TCS,


What is the purpose of thread?

0 Answers  


Categories