Skip to content

Latest commit

 

History

History

110-Balanced-Binary-Tree

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

110. Balanced Binary Tree

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.

题意

判断二叉树是否是平衡的

方法(一)

递归判断左右子树的最大深度是否相差一