mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-24 02:03:10 +08:00
build
This commit is contained in:
@ -2174,7 +2174,7 @@ comments: true
|
||||
// 若遇到指定 key ,则返回对应 val
|
||||
if (
|
||||
this.#buckets[j].key === key &&
|
||||
this.#buckets[j][key] !== this.#removed.key
|
||||
this.#buckets[j].key !== this.#removed.key
|
||||
)
|
||||
return this.#buckets[j].val;
|
||||
}
|
||||
@ -2195,7 +2195,7 @@ comments: true
|
||||
// 若遇到空桶、或带有删除标记的桶,则将键值对放入该桶
|
||||
if (
|
||||
this.#buckets[j] === null ||
|
||||
this.#buckets[j][key] === this.#removed.key
|
||||
this.#buckets[j].key === this.#removed.key
|
||||
) {
|
||||
this.#buckets[j] = new Pair(key, val);
|
||||
this.#size += 1;
|
||||
@ -2302,7 +2302,7 @@ comments: true
|
||||
// 若遇到指定 key ,则返回对应 val
|
||||
if (
|
||||
this.#buckets[j].key === key &&
|
||||
this.#buckets[j][key] !== this.#removed.key
|
||||
this.#buckets[j].key !== this.#removed.key
|
||||
)
|
||||
return this.#buckets[j].val;
|
||||
}
|
||||
@ -2323,7 +2323,7 @@ comments: true
|
||||
// 若遇到空桶、或带有删除标记的桶,则将键值对放入该桶
|
||||
if (
|
||||
this.#buckets[j] === null ||
|
||||
this.#buckets[j][key] === this.#removed.key
|
||||
this.#buckets[j].key === this.#removed.key
|
||||
) {
|
||||
this.#buckets[j] = new Pair(key, val);
|
||||
this.#size += 1;
|
||||
|
Reference in New Issue
Block a user