octicon-rss(16/)
You've already forked hello-algo
mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-10 01:27:28 +08:00
Update JavaScript style (Chapter of Hashing)
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 2 changed files with 2 additions and 2 deletions
@@ -14,7 +14,7 @@ class Entry {
|
||||
|
||||
/* 基于数组简易实现的哈希表 */
|
||||
class ArrayHashMap {
|
||||
#bucket
|
||||
#bucket;
|
||||
constructor() {
|
||||
// 初始化一个长度为 100 的桶(数组)
|
||||
this.#bucket = new Array(100).fill(null);
|
||||
|
||||
@@ -539,7 +539,7 @@ $$
|
||||
|
||||
/* 基于数组简易实现的哈希表 */
|
||||
class ArrayHashMap {
|
||||
#bucket
|
||||
#bucket;
|
||||
constructor() {
|
||||
// 初始化一个长度为 100 的桶(数组)
|
||||
this.#bucket = new Array(100).fill(null);
|
||||
|
||||
Reference in New Issue
Block a user