Sum of nodes having only one child
Filed under CodingMart
The question
Calculate the sum of the values of all nodes in a binary tree that have exactly one child.
No write-up yet. Related questions below have one.
Related CodingMart questions
Collected from public candidate posts and coding forums. Updated Nov 2026.