This commit is contained in:
programmercarl
2023-08-18 09:35:21 +08:00
parent 1ba98e93e3
commit b66eb1c7fd
3 changed files with 3 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ left与right的逻辑处理; // 中
![236.二叉树的最近公共祖先](https://code-thinking-1253855093.file.myqcloud.com/pics/2021020415105872.png)
就像图中一样直接返回7,多美滋滋
就像图中一样直接返回7。
但事实上还要遍历根节点右子树即使此时已经找到了目标节点了也就是图中的节点4、15、20。