数据结构:满二叉树和完全二叉树
数据结构 About 194 words满二叉树

如图:所有叶子节点都在最后一层,并且节点总数为2^n-1。n为层数。
完全二叉树

如果该二叉树的所有叶子节点都在最后一层或者倒数第二层,而且最后一层的叶子节点在左边连续(从左往右,81->91),倒数第二层的叶子节点在右边连续(从右往左,71->61->15),我们称为完全二叉树。
如果把61节点删除,就不是完全二叉树了,因为叶子节点从右往左不连续了。
Views: 4,990 · Posted: 2021-02-13
———         Thanks for Reading         ———
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Prev Post
Next Post
Today In History
- React ECharts 添加事件后控件多次绘制导致闪烁多次 Views: 8 · Posted: 2026-04-07
- Spring Boot OpenFeign 配置 HTTPS 客户端证书 Views: 2,440 · Posted: 2024-04-07
- VSCodium 代替 VS Code Views: 4,187 · Posted: 2023-04-07
- GitHub 提交了生产环境账号密码撤销办法 Views: 2,843 · Posted: 2022-04-07
- Java 中的锁 ReentrantLock Views: 2,871 · Posted: 2021-04-07
- Spring Boot 中的 ApplicationRunner 和 CommandLineRunner Views: 4,607 · Posted: 2020-04-07
- MySQL 命令行纵向打印 Views: 3,644 · Posted: 2019-04-07
- MySQL 存储 IP 地址 Views: 4,262 · Posted: 2019-04-07
- MySQL 字符串拼接 Views: 4,923 · Posted: 2019-04-07
- SQL 删除重复记录且保留一条 Views: 2,967 · Posted: 2019-04-07
- MySQL 查询重复数据 Views: 3,223 · Posted: 2019-04-07
- MySQL 自动更新时间戳及默认时间戳 Views: 6,812 · Posted: 2019-04-07
- MySQL 查询冗余索引 Views: 4,171 · Posted: 2019-04-07
- Ubuntu 系统升级 MySQL 版本 Views: 4,067 · Posted: 2019-04-07
- MySQL 查看运行的是哪份配置文件 Views: 3,823 · Posted: 2019-04-07
- MySQL 严格模式引起的问题 Views: 2,623 · Posted: 2019-04-07
- MySQL 最后一次查询花费时间 Views: 4,231 · Posted: 2019-04-07
- MySQL 查看配置文件路径 Views: 4,589 · Posted: 2019-04-07
- MySQL 时间相差了 13 小时 Views: 3,932 · Posted: 2019-04-07
- MySQL server has gone away Views: 3,918 · Posted: 2019-04-07
- MySQL 存储 Emoji 表情 Views: 2,769 · Posted: 2019-04-07
- MySQL 查看数据储存引擎 Views: 2,546 · Posted: 2019-04-07
- MySQL 查看有多少个连接 Views: 3,377 · Posted: 2019-04-07
- MySQL 数据库设置 root 密码 Views: 2,664 · Posted: 2019-04-07
- MySQL 开启日志 Views: 2,883 · Posted: 2019-04-07
- MySQL 事务 Views: 3,144 · Posted: 2019-04-07
- MySQL 视图 Views: 3,425 · Posted: 2019-04-07
- MySQL 内置函数之时间函数 Views: 3,262 · Posted: 2019-04-07
- MySQL 内置函数之数学函数 Views: 3,272 · Posted: 2019-04-07
- MySQL 内置函数之字符串函数 Views: 3,682 · Posted: 2019-04-07
- MySQL 外键 Views: 3,513 · Posted: 2019-04-07
- MySQL 分页 Views: 2,926 · Posted: 2019-04-07
- MySQL 排序 Views: 2,450 · Posted: 2019-04-07
- MySQL 分组 Views: 3,064 · Posted: 2019-04-07
Browsing
Refresh
Loading...
- Kubernetes kubectl cp 命令报错 error: unexpected EOF Views: 5606
- PostgreSQL 搭建主从同步实现读写分离 Views: 2313
- VSCodium 代替 VS Code Views: 4187
- Vue 3 环境变量 Views: 1765
- Java 并发编程之 LinkedBlockingQueue 阻塞队列 Views: 3134
- 使用 trivy 扫描 Docker 镜像、K8S 集群的安全漏洞 Views: 4243
- MySQL 存储 Emoji 表情 Views: 2770
- Docker 搭建私有仓库 Registry Views: 2758
- 软考-系统架构设计师:规范化理论-模式分解 Views: 4057
- MySQL/Oracle 更新或替换字符串字段中的部分内容 Views: 5206