• edited by
38,113 views
98 98 votes

In a binary tree, for every node the difference between the number of nodes in the left and right subtrees is at most $2$. If the height of the tree is $h > 0$, then the minimum number of nodes in the tree is

  1. $2^{h-1}$
  2. $2^{h-1} + 1$
  3. $2^h - 1$
  4. $2^h$

8 Answers

–3 –3 votes

Wrong options

• reshown by
Answer:
Position:
Show:

Related questions

34 34 votes
4 answers 4 answers
13.8k
13.8k views
Ishrat Jahan asked Nov 3, 2014
13,816 views
A binary search tree contains the numbers $1, 2, 3, 4, 5, 6, 7, 8.$ When the tree is traversed in pre-order and the values in each node printed out, the sequence of value...
39 39 votes
2 answers 2 answers
14.0k
14.0k views
Ishrat Jahan asked Nov 3, 2014
13,982 views
The following C function takes a singly-linked list of integers as a parameter and rearranges the elements of the list. The list is represented as pointer to a structure....
102 102 votes
2 answers 2 answers
30.9k
30.9k views
Ishrat Jahan asked Nov 3, 2014
30,933 views
A function $f$ defined on stacks of integers satisfies the following properties. $f(∅) = 0$ and $f (push (S, i)) = max (f(S), 0) + i$ for all stacks $S$ and integers $i$....
77 77 votes
13 answers 13 answers
24.4k
24.4k views
Ishrat Jahan asked Nov 3, 2014
24,384 views
The numbers $1, 2, .\dots n$ are inserted in a binary search tree in some order. In the resulting tree, the right subtree of the root contains $p$ nodes. The first number...