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

What is the maximum total number of nodes in a tree that has
N levels? Note that the root is level (zero)

Answer Posted / gaurav gupta

(2^(N+1))-1
Suppose level is 2 then total number of nodes will be
1 root
2 left of root and right of root
2 left and right of left of root
2 left and right of right of root
so total nodes are 1+2+2+2=7

by formula (2^(2+1))-1
8-1=7

Is This Answer Correct ?    24 Yes 10 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?

802


Explain the Queue

949


What is a height of a tree?

832


What is the difference between classifying and sorting?

968


What is arrays copyof?

813


Which is more efficient merge sort vs quicksort?

807


Explain what is the type of the algorithm used in solving the 8 queens problem?

831


What are the properties of binary tree?

871


Why do we need linked lists?

873


What are the different types of data structures?

940


Why is tuple immutable?

773


Write a recursive c function to calculate the height of a binary tree.

854


How do you insert a new item in a binary search tree?

925


Can an arraylist be null?

847


What do you mean by rehashing?

1076