A binary tree T has n leaf nodes. The number of nodes of degree 2 in T is
GATE · 1995 · CS · Question 1 subparts
A binary tree T has n leaf nodes. The number of nodes of degree 2 in T is
- A.
log₂n
- B.
n-1
- C.
n
- D.
2ⁿ
Attempted by 742 students.
Show answer
Correct answer: B
The worked solution is available to enrolled students.
Video solution available to enrolled students.
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…