Skip to content

Commit

Permalink
Update JavaScript style (Chapter of Hashing)
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-tse committed Dec 26, 2022
1 parent 650872c commit 60c715b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codes/javascript/chapter_hashing/array_hash_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Entry {

/* 基于数组简易实现的哈希表 */
class ArrayHashMap {
#bucket
#bucket;
constructor() {
// 初始化一个长度为 100 的桶(数组)
this.#bucket = new Array(100).fill(null);
Expand Down
2 changes: 1 addition & 1 deletion docs/chapter_hashing/hash_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ $$

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

0 comments on commit 60c715b

Please sign in to comment.