From 2caa3c3e8c6faf3c7cb14f9ee77eea9538cc7226 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Wed, 28 Oct 2026 13:45:06 +0800 Subject: [PATCH] =?UTF-8?q?Update=2055.2=20=E5=B9=B3=E8=A1=A1=E4=BA=8C?= =?UTF-8?q?=E5=8F=89=E6=A0=91.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 题目链接改为力扣中的对应题目,题目描述和代码按该题的接口调整。 --- notes/55.2 平衡二叉树.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/notes/55.2 平衡二叉树.md b/notes/55.2 平衡二叉树.md index 12c57f42..8327680a 100644 --- a/notes/55.2 平衡二叉树.md +++ b/notes/55.2 平衡二叉树.md @@ -1,6 +1,6 @@ # 55.2 平衡二叉树 -[NowCoder](https://www.nowcoder.com/practice/8b3b95850edb4115918ecebdf1b4d222?tpId=13&tqId=11192&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking&from=cyc_github) +[Leetcode](https://leetcode.cn/problems/ping-heng-er-cha-shu-lcof/) ## 题目描述 @@ -13,7 +13,8 @@ ```java private boolean isBalanced = true; -public boolean IsBalanced_Solution(TreeNode root) { +public boolean isBalanced(TreeNode root) { + isBalanced = true; height(root); return isBalanced; }