mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-09 14:06:06 +00:00
deploy
This commit is contained in:
@@ -4138,7 +4138,7 @@
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>我们也可以不使用递归,仅基于迭代实现前、中、后序遍历,有兴趣的同学可以自行实现。</p>
|
||||
</div>
|
||||
<p>图 7-11 展示了前序遍历二叉树的递归过程,其可分为“递”和“归”两个逆向的部分:</p>
|
||||
<p>图 7-11 展示了前序遍历二叉树的递归过程,其可分为“递”和“归”两个逆向的部分。</p>
|
||||
<ol>
|
||||
<li>“递”表示开启新方法,程序在此过程中访问下一个节点。</li>
|
||||
<li>“归”表示函数返回,代表当前节点已经访问完毕。</li>
|
||||
|
||||
Reference in New Issue
Block a user