GATE CS 1995 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0267

A binary tree T has n leaf nodes. The number of nodes of degree 2 in T is
  1. A
    \(\log_2 n\)
  2. B
    n-1
  3. C
    n
  4. D
    \(2^n\)

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/2604/gate1995-1-17

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com