GATE CS 1998 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0257

A complete n-ary tree is one in which every node has 0 or n sons. If x is the number of internal nodes of a complete n-ary tree, the number of leaves in it is given by
  1. A
    x(n-1)+1
  2. B
    xn-1
  3. C
    xn+1
  4. D
    x(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/1683/gate1998-2-11

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