输入一棵二叉树,判断该二叉树是不是平衡二叉树

题目:web 输入一棵二叉树,判断该二叉树是不是平衡二叉树svg 代码:ui class Solution { public: bool IsBalanced_Solution(TreeNode* pRoot) { int depth; return Depth(pRoot, &depth); } bool Depth(TreeNode *p
相关文章
相关标签/搜索