Merge pull request #30 from qualifier1024/patch-1

Update binary_tree.md
This commit is contained in:
Yudong Jin 2022-11-26 22:14:57 +08:00 committed by GitHub
commit 12cdf1e738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,11 +56,11 @@ comments: true
<div class="center-table" markdown>
| | 完美二叉树 | 链表 |
| ----------------------------- | ---------- | -------------- |
| 二叉树第 $i$ 层的结点数量 | $2^{i-1}$ | $1$ |
| | 完美二叉树 | 链表 |
| ----------------------------- | ---------- | ---------- |
| 二叉树第 $i$ 层的结点数量 | $2^{i-1}$ | $1$ |
| 高度为 $h$ 的二叉树的结点总数 | $2^h - 1$ | $h$ |
| 结点总数为 $n$ 的二叉树的高度 | $n$ | $\log_2 n + 1$ |
| 结点总数为 $n$ 的二叉树的高度 | $\log_2 n + 1$ | $n$ |
</div>