mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
1. lower-case nouns
2. fix 2 figures 3. Replace some 「」 by “”
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 数组
|
||||
|
||||
「数组 Array」是一种线性数据结构,其将相同类型元素存储在连续的内存空间中。我们将某个元素在数组中的位置称为该元素的「索引 Index」。
|
||||
「数组 array」是一种线性数据结构,其将相同类型元素存储在连续的内存空间中。我们将某个元素在数组中的位置称为该元素的「索引 index」。
|
||||
|
||||

|
||||
|
||||
@@ -445,7 +445,7 @@ elementAddr = firtstElementAddr + elementLength * elementIndex
|
||||
|
||||
在数组中查找指定元素需要遍历数组,每轮判断元素值是否匹配,若匹配则输出对应索引。
|
||||
|
||||
因为数组是线性数据结构,所以上述查找操作被称为「线性查找」。
|
||||
因为数组是线性数据结构,所以上述查找操作被称为“线性查找”。
|
||||
|
||||
=== "Java"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user