平衡左右平衡
Balance left and right balance
以上为机器翻译结果,长、整句建议使用 人工翻译 。
二叉树平衡的条件是左子树平衡且右子树平衡且左右子树的高度相差最多为1。基于这个思路递归处理。
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.
youdao
应用推荐
模块上移
模块下移
不移动