mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 12:58:42 +08:00
Update and fix some contents.
Place the comment box above the comments.
This commit is contained in:
@ -187,7 +187,7 @@
|
||||
|
||||
!!! question "例题三"
|
||||
|
||||
在二叉树中搜索所有值为 $7$ 的节点,返回根节点到这些节点的路径,**路径中不能包含值为 $3$ 的节点**。
|
||||
在二叉树中搜索所有值为 $7$ 的节点,返回根节点到这些节点的路径,**路径中不能包含值为 $3$ 的节点**。
|
||||
|
||||
**解题思路**:在例题二的基础上添加剪枝操作,当遇到值为 $3$ 的节点时,则终止继续搜索。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user