← Samsung questions
CodingReported in a candidate post, Aug 2018

Boundary sum of a binary tree

Filed under Samsung

Given a binary tree, compute and return the sum of its boundary nodes. The boundary includes the left boundary, leaves, and the right boundary, excluding duplicates.

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.