会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Szc2022
博客园
首页
新随笔
联系
订阅
管理
2022年5月6日
树(前序、中序、后序)
摘要: 前序、中序、后序遍历 可以看一下LeetCode144、145/94 1. 使用递归实现前、中、后序遍历 1.1 前序: void dfs(TreeNode root) { visit(root); dfs(root.left); dfs(root.right); } 1.2 中序 void dfs
阅读全文
posted @ 2022-05-06 15:42 小白的学习
阅读(198)
评论(0)
推荐(0)
公告