GATE CS 2025, set 2 · Question 13 · Programming and Data Structures · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Consider a binary tree T in which every node has either zero or two children. Let n > 0 be the number of nodes in T.
Which ONE of the following is the number of nodes in T that have exactly two children?
- (A) (n-2)/2
- (B) (n-1)/2
- (C) n/2
- (D) (n+1)/2
Answer
Answer (B)
Answer from the official GATE CS 2025 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes