Merge pull request #30 from qualifier1024/patch-1
Update binary_tree.md
This commit is contained in:
commit
12cdf1e738
@ -57,10 +57,10 @@ comments: true
|
||||
<div class="center-table" markdown>
|
||||
|
||||
| | 完美二叉树 | 链表 |
|
||||
| ----------------------------- | ---------- | -------------- |
|
||||
| ----------------------------- | ---------- | ---------- |
|
||||
| 二叉树第 $i$ 层的结点数量 | $2^{i-1}$ | $1$ |
|
||||
| 高度为 $h$ 的二叉树的结点总数 | $2^h - 1$ | $h$ |
|
||||
| 结点总数为 $n$ 的二叉树的高度 | $n$ | $\log_2 n + 1$ |
|
||||
| 结点总数为 $n$ 的二叉树的高度 | $\log_2 n + 1$ | $n$ |
|
||||
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user