Skip to content

Commit 2070d15

Browse files
committed
feat: add 110
1 parent b9b4dcc commit 2070d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

note/110/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For this problem, a height-balanced binary tree is defined as a binary tree in w
1111

1212
## 思路
1313

14-
题意是判断一棵二叉树是否是高度平衡的,所谓二叉树高度平衡指的是二叉树的每个节点的两棵子树的高度差都不超过1。
14+
题意是判断一棵二叉树是否是高度平衡的,所谓二叉树高度平衡指的是二叉树的每个节点的两棵子树的高度差都不超过1,那么我们只需计算左右子树的高度,判断其高度差是否不超过1即可,如果超过1,就代表其不是高度平衡的,立即返回不是即可
1515

1616

1717
``` java

0 commit comments

Comments
 (0)