Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit804aa7e

Browse files
authored
Update 数组总结篇.md
1 parentf9a2fe4 commit804aa7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎problems/数组总结篇.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@
2121

2222
**数组是存放在连续内存空间上的相同类型数据的集合。**
2323

24-
数组可以方便的通过下表索引的方式获取到下表下对应的数据
24+
数组可以方便的通过下标索引的方式获取到下标下对应的数据
2525

2626
举一个字符数组的例子,如图所示:
2727

2828
<imgsrc='../../media/pics/算法通关数组.png'width=600> </img></div>
2929

3030
需要两点注意的是
3131

32-
***数组下表都是从0开始的**
32+
***数组下标都是从0开始的**
3333
***数组内存空间的地址是连续的**
3434

3535
正是**因为数组的在内存空间的地址是连续的,所以我们在删除或者增添元素的时候,就难免要移动其他元素的地址。**
3636

37-
例如删除下表为3的元素,需要对下表为3的元素后面的所有元素都要做移动操作,如图所示:
37+
例如删除下标为3的元素,需要对下标为3的元素后面的所有元素都要做移动操作,如图所示:
3838

3939
<imgsrc='../../media/pics/算法通关数组1.png'width=600> </img></div>
4040

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp