Skip to content

Files

Latest commit

7a7d3f2 · Oct 20, 2020

History

History
51 lines (29 loc) · 743 Bytes

File metadata and controls

51 lines (29 loc) · 743 Bytes

English Version

题目描述

计算给定二叉树的所有左叶子之和。

示例:

    3
   / \
  9  20
    /  \
   15   7

在这个二叉树中,有两个左叶子,分别是 9 和 15,所以返回 24

 

解法

Python3

Java

...