JobsJob TrackerJob alerts

CodingMart · 21 questions

All 21Coding 17
  • Decode the Slanted CiphertextCoding
  • Calculator for expressions with parentheses and errorsCoding
  • Group people into boats of up to three under a weight limitCoding
  • Longest alternating subsequenceCoding
  • Minimum attention each student needs by neighbouring scoresCoding
  • Technical MCQs
  • Ballon BurstCoding
  • Technical Discussion
  • Hitting the birdCoding
  • Hitting the dinosaurCoding
  • CRUD operation taskCoding
  • Fastest 3 horses puzzle
  • Chaos in the bus puzzle
  • DSA and Complexity MCQCoding
  • Subarrays with K Distinct ElementsCoding
  • Core Java and OOP ConceptsCoding
  • MCQ round on DSACoding
  • Create BST, delete nodes from array, and traverse in-orderCoding
  • Find frequency of each element in an arrayCoding
  • Print string in a zigzag mannerCoding
  • Sum of nodes having only one childCoding
← CodingMart questions
  1. Interview questions
  2. CodingMart
  3. Sum of nodes having only one child
Coding

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

  • Decode the Slanted Ciphertext
  • Calculator for expressions with parentheses and errors
  • Group people into boats of up to three under a weight limit
  • Longest alternating subsequence
  • Minimum attention each student needs by neighbouring scores
← Print string in a zigzag manner

Collected from public candidate posts and coding forums. Updated Nov 2026.