Search
⌘K

Leetcode 404. Sum of Left Leaves

Return the sum of values of all leaf nodes in a binary tree that are left children of their parents (i.e., nodes with no children that occupy a left-child position). This is a simple tree-traversal problem where you identify and accumulate left leaves.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.