mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-06 07:06:42 +08:00
Update 0236.二叉树的最近公共祖先.md
This commit is contained in:
@ -45,7 +45,7 @@
|
||||
|
||||
那么二叉树如何可以自底向上查找呢?
|
||||
|
||||
回溯啊,二叉树回溯的过程就是从低到上。
|
||||
回溯啊,二叉树回溯的过程就是从底到上。
|
||||
|
||||
后序遍历(左右中)就是天然的回溯过程,可以根据左右子树的返回值,来处理中节点的逻辑。
|
||||
|
||||
|
Reference in New Issue
Block a user