Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.
{优快云:CODE:630434}
本文讨论了如何确定给定的二叉树是否为高度平衡二叉树,定义了一个高度平衡二叉树的概念,并提供了实现判断的方法。
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.

被折叠的 条评论
为什么被折叠?