in DS edited by
6,177 views
3 votes
3 votes

Which of the following number of nodes can form a full binary tree?

  1. 8
  2. 15
  3. 14
  4. 13
in DS edited by
6.2k views

1 comment

According to me: 15 and 13 both answers are correct depending on the definitions that you have studied.

Is there any "Default definition" ? I mean when no definition is given what should be safe to assume.

1
1

2 Answers

12 votes
12 votes
Best answer

option B

selected by

4 Comments

Complete binary tree Vs Almost complete binary tree

Full binary tree Vs Complete Binary tree.

both are same referred differently in different books
1
1
here full binary tree means complete binary tree not almost complete binary tree
1
1
Those terms are used interchangeably. Complete and full binary tree.
0
0
0 votes
0 votes
Answer 13 & 15

In Full binary tree a node could have either 0 child 0r 2 children

so there would be odd number of total nodes possible along with the root.

answer

2x+1 = total nodes
by