Compare commits

...

3 commits

Author SHA1 Message Date
qinmu
ed6f3c6b20
Merge dbad1087b1 into c12d01a752 2024-09-24 17:58:18 +08:00
bongbongbakudan
c12d01a752
Update my_list.js (#1511)
修改insert注释
2024-09-24 17:57:34 +08:00
qinmu
dbad1087b1 doc: translate chapter_tree/index.md to English 2024-09-04 22:07:28 +08:00
2 changed files with 3 additions and 3 deletions

View file

@ -70,7 +70,7 @@ class MyList {
remove(index) {
if (index < 0 || index >= this.#size) throw new Error('索引越界');
let num = this.#arr[index];
// 将索引 index 之后的元素都向前移动一位
// 将索引 index 之后的元素都向前移动一位
for (let j = index; j < this.#size - 1; j++) {
this.#arr[j] = this.#arr[j + 1];
}

View file

@ -4,6 +4,6 @@
!!! abstract
The towering tree, vibrant with it's deep roots and lush leaves, branches spreading wide.
The towering tree exudes a vibrant essence, boasting profound roots and abundant foliage, yet its branches are sparsely scattered, creating an ethereal aura.
It vividly illustrates the concept of divide-and-conquer in data.
It shows us the vivid form of data partitioning.