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
Describe full binary tree and complete binary tree.
What is linked hash set?
What is frozenset?
Does mentioning the array name gives the base address in all the contexts?
How to show internal storage representation of data structure in RDBM?
Why is hashmap faster?
How are the elements of a 2d array are stored in the memory?
Is pointer a variable in data structure?
Is arraylist better than array?
What are three common types of traversals?
What is entryset method in map?
What is a list in data structure?
How would you sort words in a large file?
What do you mean by data and data structure?
What is stack in data structure with the example?