Add the codes of hashmap (#553)

of chaining and open addressing
This commit is contained in:
Yudong Jin
2023-06-14 02:01:06 +08:00
committed by GitHub
parent d3e597af94
commit 9563965a20
27 changed files with 1280 additions and 207 deletions
@@ -36,7 +36,7 @@ func TestArrayHashMap(t *testing.T) {
/* 遍历哈希表 */
fmt.Println("\n遍历键值对 Key->Value")
for _, kv := range mapp.entrySet() {
for _, kv := range mapp.pairSet() {
fmt.Println(kv.key, " -> ", kv.val)
}