mirror of
https://github.com/krahets/hello-algo.git
synced 2026-05-11 11:07:14 +08:00
build
This commit is contained in:
@@ -896,7 +896,7 @@ index = hash(key) % capacity
|
||||
let arr = [];
|
||||
for (let i = 0; i < this.#buckets.length; i++) {
|
||||
if (this.#buckets[i]) {
|
||||
arr.push(this.#buckets[i]?.key);
|
||||
arr.push(this.#buckets[i].key);
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -907,7 +907,7 @@ index = hash(key) % capacity
|
||||
let arr = [];
|
||||
for (let i = 0; i < this.#buckets.length; i++) {
|
||||
if (this.#buckets[i]) {
|
||||
arr.push(this.#buckets[i]?.val);
|
||||
arr.push(this.#buckets[i].val);
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -989,7 +989,7 @@ index = hash(key) % capacity
|
||||
let arr: (number | undefined)[] = [];
|
||||
for (let i = 0; i < this.buckets.length; i++) {
|
||||
if (this.buckets[i]) {
|
||||
arr.push(this.buckets[i]?.key);
|
||||
arr.push(this.buckets[i].key);
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
@@ -1000,7 +1000,7 @@ index = hash(key) % capacity
|
||||
let arr: (string | undefined)[] = [];
|
||||
for (let i = 0; i < this.buckets.length; i++) {
|
||||
if (this.buckets[i]) {
|
||||
arr.push(this.buckets[i]?.val);
|
||||
arr.push(this.buckets[i].val);
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
|
||||
Reference in New Issue
Block a user