← Samsung questions
CodingReported in a candidate post, Oct 2018

Sum of Nodes at Distance K

Filed under Samsung

Calculate the sum of all nodes in a binary tree that are exactly distance k from a given target node.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Samsung questions

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