Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Sum of Left Leaves
Bookmark
Input
Example 1 (sum=24)
Example 2 (sum=4)
Single Node (sum=0)
Custom
tree
=
[3, 9, 20, null, null, 15, 7]
3
9
20
15
7
algo
master
.
io
Step:
Start: Find the sum of all left leaves
0 / 16
Input
Example 1 (sum=24)
Example 2 (sum=4)
Single Node (sum=0)
Custom
tree
=
[3, 9, 20, null, null, 15, 7]
0 / 16
3
9
20
15
7
algo
master
.
io
Step:
Start: Find the sum of all left leaves