← Samsung questions

Sum of Left Leaves with Right Sibling

Filed under Samsung

Given the root of a binary tree, return the sum of all left leaf nodes that have a right sibling (i.e., their parent node also has a right child).

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.