Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

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

Such a binary tree is full binary tree (a binary tree where every node has 0 or 2 children).



Your comments will be displayed only after manual approval.