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

Does arraylist extend list?

461


Is learning data structures necessary?

463


Which is the parent class of abstractsequentiallist class?

473


What do you mean by Logical Error

561


How helpful is abstract data type of data structures?

514






What is data type with example?

511


Define path in a graph?

520


What will happen if an array goes out of bounds?

667


What is sorted map?

502


What member function places a new node at the end of the linked list?

643


State the demerit of linear representation of binary trees?

481


What are the tasks performed while traversing a binary tree?

619


Define rehashing?

615


What differences exist between hashmap and hashtable?

510


Define double linked list?

572