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

Define primary data structures?

975


Explain Array of pointers?

966


What are the 4 types of data?

1009


Does treemap allow null values?

851


What are the basic data structures?

975


What is unbounded queue?

918


How long does it take to master data structures and algorithms?

1127


How are the elements of a 2d array are stored in the memory?

1020


You are given a singly linked list. How would you find out if it contains a loop or not without using temporary space?

1103


Which is better hashmap or treemap?

962


What are the advantages of linked list over an array?

939


How do you initialize an arraylist?

966


Run time memory allocation is known as ?

990


Which collection is used for sort?

864


Differentiate between compilers and interpreters.

924