41: Sum of the left leaves
Given a binary tree
. Calculate the sum
of the left leaves
Example 1
Input: 1
/ \
5 3
Output: 5
Example 2
Input: 1
\
3
Output: 0
Given a binary tree
. Calculate the sum
of the left leaves
Example 1
Input: 1
/ \
5 3
Output: 5
Example 2
Input: 1
\
3
Output: 0