We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2737357 commit c12d01aCopy full SHA for c12d01a
codes/javascript/chapter_array_and_linkedlist/my_list.js
@@ -70,7 +70,7 @@ class MyList {
70
remove(index) {
71
if (index < 0 || index >= this.#size) throw new Error('索引越界');
72
let num = this.#arr[index];
73
- // 将将索引 index 之后的元素都向前移动一位
+ // 将索引 index 之后的元素都向前移动一位
74
for (let j = index; j < this.#size - 1; j++) {
75
this.#arr[j] = this.#arr[j + 1];
76
}
0 commit comments