We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 528b716 commit f628fe2Copy full SHA for f628fe2
codes/typescript/chapter_hashing/array_hash_map.ts
@@ -41,7 +41,7 @@ class ArrayHashMap {
41
/* 添加操作 */
42
public set(key: number, val: string) {
43
let index = this.hashFunc(key);
44
- this.bucket[index] = new Entry(index, val);
+ this.bucket[index] = new Entry(key, val);
45
}
46
47
/* 删除操作 */
0 commit comments