From 547093210e1b19643595b017db1230ad8a6fcb08 Mon Sep 17 00:00:00 2001 From: krahets Date: Sun, 7 Jan 2024 04:00:05 +0800 Subject: [PATCH] deploy --- chapter_array_and_linkedlist/array/index.html | 12 ++++---- .../linked_list/index.html | 8 +++--- chapter_array_and_linkedlist/list/index.html | 27 +++++++++++------- .../backtracking_algorithm/index.html | 6 ++-- .../n_queens_problem/index.html | 2 +- .../permutations_problem/index.html | 4 +-- .../subset_sum_problem/index.html | 6 ++-- .../iteration_and_recursion/index.html | 16 +++++------ .../space_complexity/index.html | 12 ++++---- .../time_complexity/index.html | 24 ++++++++-------- chapter_hashing/hash_algorithm/index.html | 2 +- chapter_hashing/hash_collision/index.html | 2 +- chapter_hashing/hash_map/index.html | 2 +- chapter_stack_and_queue/queue/index.html | 4 +-- chapter_stack_and_queue/stack/index.html | 4 +-- .../array_representation_of_tree/index.html | 22 +++++++------- .../array/index.html | 12 ++++---- .../linked_list/index.html | 8 +++--- .../list/index.html | 27 +++++++++++------- .../iteration_and_recursion/index.html | 16 +++++------ .../space_complexity/index.html | 12 ++++---- .../time_complexity/index.html | 24 ++++++++-------- en/search/search_index.json | 2 +- en/sitemap.xml.gz | Bin 452 -> 452 bytes search/search_index.json | 2 +- sitemap.xml.gz | Bin 999 -> 999 bytes 26 files changed, 133 insertions(+), 123 deletions(-) diff --git a/chapter_array_and_linkedlist/array/index.html b/chapter_array_and_linkedlist/array/index.html index b133fabed..7253484af 100644 --- a/chapter_array_and_linkedlist/array/index.html +++ b/chapter_array_and_linkedlist/array/index.html @@ -3911,7 +3911,7 @@
可视化运行

-全屏观看 >

+全屏观看 >

3.   插入元素

数组元素在内存中是“紧挨着的”,它们之间没有空间再存放任何数据。如图 4-3 所示,如果想在数组中间插入一个元素,则需要将该元素之后的所有元素都向后移动一位,之后再把元素赋值给该索引。

@@ -4069,7 +4069,7 @@
可视化运行

-全屏观看 >

+全屏观看 >

4.   删除元素

同理,如图 4-4 所示,若想删除索引 \(i\) 处的元素,则需要把索引 \(i\) 之后的元素都向前移动一位。

@@ -4204,7 +4204,7 @@
可视化运行

-全屏观看 >

+全屏观看 >

总的来看,数组的插入与删除操作有以下缺点。