![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树的遍历 序列化
海州湾
这个作者很懒,什么都没留下…
展开
-
LeetCode 树序列化与反序列化[递归]297. Serialize and Deserialize Binary Tree
题目链接 https://leetcode.com/problems/serialize-and-deserialize-binary-tree/#/description Serialization is the process of converting a data structure or object into a sequence of bits so that it原创 2017-07-17 10:38:20 · 319 阅读 · 0 评论 -
LintCode [递归]97.二叉树的最大深度
题目链接 http://www.lintcode.com/zh-cn/problem/maximum-depth-of-binary-tree/ 给定一个二叉树,找出其最大深度。 二叉树的深度为根节点到最远叶子节点的距离。 样例 给出一棵如下的二叉树: 1 / \ 2 3 / \ 4 5 这个二叉树的最大深度为3.原创 2017-07-18 16:59:19 · 192 阅读 · 0 评论