Update JavaScript style (Chapter of Hashing)

This commit is contained in:
justin 2022-12-26 23:45:23 +08:00
parent 650872cb05
commit 60c715b041
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ class Entry {
/* 基于数组简易实现的哈希表 */
class ArrayHashMap {
#bucket
#bucket;
constructor() {
// 初始化一个长度为 100 的桶(数组)
this.#bucket = new Array(100).fill(null);

View file

@ -539,7 +539,7 @@ $$
/* 基于数组简易实现的哈希表 */
class ArrayHashMap {
#bucket
#bucket;
constructor() {
// 初始化一个长度为 100 的桶(数组)
this.#bucket = new Array(100).fill(null);