From a69b5ef93bdd2129e3c9234fa28d0dae71369af8 Mon Sep 17 00:00:00 2001 From: sunshinesDL <61528023+sunshinesDL@users.noreply.github.com> Date: Sat, 20 Sep 2025 19:26:04 +0800 Subject: [PATCH] Update hash_map.md (#1802) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update hash_map.md 对目标句子的表达略微修改,使得前后句子的语义更加一致。 * Fix wording for bucket index calculation --------- Co-authored-by: Yudong Jin --- docs/chapter_hashing/hash_map.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter_hashing/hash_map.md b/docs/chapter_hashing/hash_map.md index 74d39f1fc..81ac957c7 100755 --- a/docs/chapter_hashing/hash_map.md +++ b/docs/chapter_hashing/hash_map.md @@ -559,7 +559,7 @@ 输入一个 `key` ,哈希函数的计算过程分为以下两步。 1. 通过某种哈希算法 `hash()` 计算得到哈希值。 -2. 将哈希值对桶数量(数组长度)`capacity` 取模,从而获取该 `key` 对应的数组索引 `index` 。 +2. 将哈希值对桶数量(数组长度)`capacity` 取模,从而获取该 `key` 对应的桶(数组索引)`index` 。 ```shell index = hash(key) % capacity