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 857 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…