Several bug fixes.

This commit is contained in:
krahets
2023-09-24 20:38:21 +08:00
parent e3773b7f76
commit ff8e7ceec5
19 changed files with 19 additions and 19 deletions

View File

@ -24,7 +24,7 @@ class HashMapChaining {
constructor() {
this.#size = 0;
this.#capacity = 4;
this.#loadThres = 2 / 3.0;
this.#loadThres = 2.0 / 3.0;
this.#extendRatio = 2;
this.#buckets = new Array(this.#capacity).fill(null).map((x) => []);
}