mirror of
https://github.com/krahets/hello-algo.git
synced 2026-05-02 23:59:54 +08:00
build
This commit is contained in:
@@ -1489,6 +1489,7 @@ comments: true
|
||||
给定一组数据,我们考虑使用数组或二叉搜索树存储。
|
||||
|
||||
观察可知,二叉搜索树的各项操作的时间复杂度都是对数阶,具有稳定且高效的性能表现。只有在高频添加、低频查找删除的数据适用场景下,数组比二叉搜索树的效率更高。
|
||||
<p align="center"> 表:数组与搜索树的效率对比 </p>
|
||||
|
||||
<div class="center-table" markdown>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user