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

  1. A.

    log₂n

  2. B.

    n-1

  3. C.

    n

  4. 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…