From aeff61ef3a57871c58831d755924807653233ba4 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Sat, 26 Nov 2022 22:14:02 +0800 Subject: [PATCH] Update binary_tree.md --- docs/chapter_tree/binary_tree.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/chapter_tree/binary_tree.md b/docs/chapter_tree/binary_tree.md index e55174581..e96e3b8a7 100644 --- a/docs/chapter_tree/binary_tree.md +++ b/docs/chapter_tree/binary_tree.md @@ -56,11 +56,11 @@ comments: true
-| | 完美二叉树 | 链表 | -| ----------------------------- | ---------- | -------------- | -| 二叉树第 $i$ 层的结点数量 | $2^{i-1}$ | $1$ | +| | 完美二叉树 | 链表 | +| ----------------------------- | ---------- | ---------- | +| 二叉树第 $i$ 层的结点数量 | $2^{i-1}$ | $1$ | | 高度为 $h$ 的二叉树的结点总数 | $2^h - 1$ | $h$ | -| 结点总数为 $n$ 的二叉树的高度 | $\log_2 n + 1$ | $n$ | +| 结点总数为 $n$ 的二叉树的高度 | $\log_2 n + 1$ | $n$ |