Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 14f91a5

Browse files
0404 左叶子之和 左叶子定义错误
1 parent 3652d00 commit 14f91a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎problems/0404.左叶子之和.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
**首先要注意是判断左叶子,不是二叉树左侧节点,所以不要上来想着层序遍历。**
2121

22-
因为题目中其实没有说清楚左叶子究竟是什么节点,那么我来给出左叶子的明确定义:**如果左节点不为空,且左节点没有左右孩子,那么这个节点就是左叶子**
22+
因为题目中其实没有说清楚左叶子究竟是什么节点,那么我来给出左叶子的明确定义:**如果左节点不为空,且左节点没有左右孩子,那么这个节点的左节点就是左叶子**
2323

2424
大家思考一下如下图中二叉树,左叶子之和究竟是多少?
2525

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /