mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-12 01:51:01 +08:00
Update a comment in array_hash_map
This commit is contained in:
@ -23,8 +23,8 @@ private:
|
||||
vector<Entry*> buckets;
|
||||
public:
|
||||
ArrayHashMap() {
|
||||
// 初始化一个长度为 100 的桶(数组)
|
||||
buckets= vector<Entry*>(100);
|
||||
// 初始化数组,包含 100 个桶
|
||||
buckets = vector<Entry*>(100);
|
||||
}
|
||||
|
||||
/* 哈希函数 */
|
||||
|
Reference in New Issue
Block a user