GATE CS 2010 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0167

In a binary tree with n nodes, every node has an odd number of descendants. Every node is considered to be its own descendant. What is the number of nodes in the tree that have exactly one child?
  1. A
    0
  2. B
    1
  3. C
    (n-1)/2
  4. D
    n-1

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

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/2183/gate2010-10

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