mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 00:46:30 +08:00
Compare commits
3 commits
f33b254f79
...
ed6f3c6b20
Author | SHA1 | Date | |
---|---|---|---|
|
ed6f3c6b20 | ||
|
c12d01a752 | ||
|
dbad1087b1 |
2 changed files with 3 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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.
|
Loading…
Reference in a new issue