跳至主要內容

判断是不是平衡二叉树

微信公众号:储凡Less than 1 minute

判断是不是平衡二叉树

题目链接

题目描述

刷题思路

代码实现

function TreeNode(x) {
  this.val = x
  this.left = null
  this.right = null
}

/**
 *
 * @param pRoot TreeNode类
 * @return bool布尔型
 */
function IsBalancedTree(pRoot) {
}

一些建议