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

Answer Posted / salmiya thilsath.a

2^(N+1)-1..

if N=0; it is 2-1=1,1 is the max no of node in the tree
if N=1; it is 4-1=3, 3 is the max no of nodes in the tree
if N=2; it is 8-1=7, 7 is the max

and it goes like that...........

Is This Answer Correct ?    124 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the collision resolution methods?

541


How to excel in data structures and algorithms?

543


Explain about circular linked list?

546


Tell me the difference between the character array and a string.

517


write a code for Implementation of stack and queues.

528






Write the importance of hashing?

609


Which algorithm is used in collections sort method?

468


What is the difference between collection and collections?

549


Why linked lists are better than arrays?

528


What are the advantages of array?

478


Define an algorithm. What are the properties of an algorithm?

516


Define left-in threaded tree?

509


Differentiate between failfast and failsafe.

688


Define binary tree insertion.

591


Is an arraylist a vector?

501