mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 09:56:29 +08:00
Update binary_tree.md (#1454)
* Update binary_tree.md 关于完全二叉树严谨性补充:完美二叉树是一棵特殊的完全二叉树,完全二叉树的最底层节点可以是满的。 * Update binary_tree.md --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
parent
f0755bdfa6
commit
0bff488383
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@
|
||||||
|
|
||||||
### 完全二叉树
|
### 完全二叉树
|
||||||
|
|
||||||
如下图所示,<u>完全二叉树(complete binary tree)</u>只有最底层的节点未被填满,且最底层节点尽量靠左填充。
|
如下图所示,<u>完全二叉树(complete binary tree)</u>只有最底层的节点未被填满,且最底层节点尽量靠左填充。请注意,完美二叉树也是一棵完全二叉树。
|
||||||
|
|
||||||
![完全二叉树](binary_tree.assets/complete_binary_tree.png)
|
![完全二叉树](binary_tree.assets/complete_binary_tree.png)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue