diff --git a/docs/dataStructures-algorithms/data-structure/线性数据结构.md b/docs/dataStructures-algorithms/data-structure/线性数据结构.md index c592a9ea..f00264aa 100644 --- a/docs/dataStructures-algorithms/data-structure/线性数据结构.md +++ b/docs/dataStructures-algorithms/data-structure/线性数据结构.md @@ -78,9 +78,9 @@ ### 2.4. 数组 vs 链表 -- 数据支持随机访问,而链表不支持。 +- 数组支持随机访问,而链表不支持。 - 数组使用的是连续内存空间对 CPU 的缓存机制友好,链表则相反。 -- 数据的大小固定,而链表则天然支持动态扩容。如果声明的数组过小,需要另外申请一个更大的内存空间存放数组元素,然后将原数组拷贝进去,这个操作是比较耗时的! +- 数组的大小固定,而链表则天然支持动态扩容。如果声明的数组过小,需要另外申请一个更大的内存空间存放数组元素,然后将原数组拷贝进去,这个操作是比较耗时的! ## 3. 栈