标签:style blog color java strong for 代码 ar
题目:
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.
题解:
采用递归的方法,要记录depth用来比较。
代码如下:
Balanced Binary Tree leetcode java,布布扣,bubuko.com
Balanced Binary Tree leetcode java
标签:style blog color java strong for 代码 ar
原文地址:http://www.cnblogs.com/springfor/p/3879824.html