From 142913bc9d18afc8264ed9722f7924d2a7d83ae3 Mon Sep 17 00:00:00 2001 From: DullSword <40877476+DullSword@users.noreply.github.com> Date: Tue, 27 Dec 2022 11:51:04 +0800 Subject: [PATCH] =?UTF-8?q?docs(chapter=5Ftree/binary=5Ftree/=E4=BA=8C?= =?UTF-8?q?=E5=8F=89=E6=A0=91=E8=A1=A8=E7=A4=BA=E6=96=B9=E5=BC=8F=20*):=20?= =?UTF-8?q?TS=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与下图及其他编程语言示例代码不一致 --- docs/chapter_tree/binary_tree.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter_tree/binary_tree.md b/docs/chapter_tree/binary_tree.md index 9fc818128..08e267ba8 100644 --- a/docs/chapter_tree/binary_tree.md +++ b/docs/chapter_tree/binary_tree.md @@ -461,7 +461,7 @@ comments: true ```typescript title="" /* 二叉树的数组表示 */ // 直接使用 null 来表示空位 - let tree = [1, 2, 3, 4, 5, 6, 7, null, null, null, null, null, null, null, null] + let tree: (number | null)[] = [1, 2, 3, 4, null, 6, 7, 8, 9, null, null, 12, null, null, 15]; ``` === "C"