Add C++, Python, Go code for chapter_hashing

This commit is contained in:
machangxin
2022-12-14 17:18:32 +08:00
parent e5e6553f82
commit aeb4e6077d
10 changed files with 792 additions and 8 deletions

View File

@ -21,7 +21,7 @@ class Entry {
class ArrayHashMap {
private List<Entry> bucket;
public ArrayHashMap() {
// 初始化一个长度为 10 的桶(数组)
// 初始化一个长度为 100 的桶(数组)
bucket = new ArrayList<>();
for (int i = 0; i < 100; i++) {
bucket.add(null);