Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 542 Bytes

14_sum-of-left-leaves.md

File metadata and controls

26 lines (16 loc) · 542 Bytes

404. Sum of Left Leaves

Find the sum of all left leaves in a given binary tree.

Example 1:

Input: root = [3,9,20,null,null,15,7]
Output: 24
Explanation: There are two left leaves in the binary tree, with values 9 and 15 respectively.

Example 2:

Input: root = [1]
Output: 0

Difficulty:

Easy

Lock:

Normal

Company:

Adobe Amazon Bloomberg Expedia Facebook Google Mathworks