closed by
233 views
0 votes
0 votes
closed with the note: Duplicate of : https://gateoverflow.in/3811/gate2005-it-50
In a binary tree,for every node the difference between the number of nodes in the left and right subtrees is atmost 2.If the height of the tree is h>0,then the minimum number of nodes in the tree is:

A)2^(h-1)     B)2^(h-1)+1

C)2^(h)-1     D)2^h

 

Answer is B) but explain the derived process clearly?
closed by

Related questions

0 votes
0 votes
2 answers
1
Sourin Kundu asked Jan 23, 2023
415 views
How many number of add and remove operations are required to access 26th element of a queue of 50 elements,so that the original queue remains the same after the access is...
0 votes
0 votes
2 answers
2
Overflow04 asked Oct 2, 2022
351 views
#include <stdio.h int main(){ int a[] = {5,3,7,2,4}; int *p = &a[3]; p -= *p; printf("%d ",*p); return 0; } output is 3.Why 2 * sizeof(int) is doene.?
1 votes
1 votes
0 answers
3
srestha asked Mar 6, 2019
791 views
void find(int x){ static int i=10,y=0; y=y+i; for(i;i>0;i=i-10){ if(x!=0) find(x-1); else{ printf("%d",y); } } }What will be output printed for find(4)?
0 votes
0 votes
1 answer
4