原文链接: https://leetcode-cn.com/problems/list-of-depth-lcci
英文原文Given a binary tree, design an algorithm which creates a
标签详情
二叉树 分类
原文链接: https://leetcode-cn.com/problems/check-balance-lcci
英文原文Implement a function to check if a binary tree is balanc
原文链接: https://leetcode-cn.com/problems/legal-binary-search-tree-lcci
英文原文Implement a function to check if a binary tre
原文链接: https://leetcode-cn.com/problems/successor-lcci
英文原文Write an algorithm to find the "next" node (i.e.,
原文链接: https://leetcode-cn.com/problems/first-common-ancestor-lcci
英文原文Design an algorithm and write code to find the f
原文链接: https://leetcode-cn.com/problems/check-subtree-lcci
英文原文T1 and T2 are two very large binary trees. Create a
原文链接: https://leetcode-cn.com/problems/zhong-jian-er-cha-shu-lcof
中文题目输入某二叉树的前序遍历和中序遍历的结果,请构建该二叉树并返回其根节点。
假设输入的前序遍历和中
原文链接: https://leetcode-cn.com/problems/shu-de-zi-jie-gou-lcof
中文题目输入两棵二叉树A和B,判断B是不是A的子结构。(约定空树不是任意一个树的子结构)
B是A的子结构, 即
原文链接: https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof
中文题目请完成一个函数,输入一个二叉树,该函数输出它的镜像。
例如输入:
&nb
原文链接: https://leetcode-cn.com/problems/dui-cheng-de-er-cha-shu-lcof
中文题目请实现一个函数,用来判断一棵二叉树是不是对称的。如果一棵二叉树和它的镜像一样,那么它是对称的