1. 翻转二叉树:https://leetcode-cn.com/problems/invert-binary-tree/
2. 二叉树展开为链表,关键在于找到递归部分:https://leetcode-cn.com/problems/flatten-binary-tree-to-linked-list/
1. 翻转二叉树:https://leetcode-cn.com/problems/invert-binary-tree/
2. 二叉树展开为链表,关键在于找到递归部分:https://leetcode-cn.com/problems/flatten-binary-tree-to-linked-list/
上一篇:stm32上电不能复位
【数据结构】第五章——树与二叉树详细介绍二叉树的存储结构……
题目在一个 m*n 的二维字符串数组中输出二叉树行数 m 应当等于给定二叉树的 高度列数 n 应当总是 奇数根节点 的值(以字符串格式
时间复杂度:空间复杂度:
题目给定两个二叉树想象当你将它们中的一个 覆盖 到另一个上时两个二叉树的一些节点便
题目输入某二叉树的前序遍历和中序遍历的结果请构建该二叉树并返回其根节点假设
题目二叉树上有 n 个节点,按从 0 到 n - 1 编号其中节点 i 的两个子节点分别是 leftChild[i]
题目给你一个二叉树判断它是否是高度平衡的二叉树一棵高度平衡二叉树定义为:一
题目在一棵无限的二叉树上,每个节点都有两个子节点树中的节点 逐行 依次按 “之” 字形进
给定一个二叉树,计算整个树的`坡度`一个树的 `节点的坡度` 定义为,该节点 `左` 子树的节点之`和` 与 `右`
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M