This commit is contained in:
krahets 2023-09-23 04:22:05 +08:00
parent 58dd6e94b6
commit 5af07ab151

View File

@ -1473,14 +1473,7 @@ comments: true
=== "C++" === "C++"
```cpp title="hash_map_open_addressing.cpp" ```cpp title="hash_map_open_addressing.cpp"
/** /* 开放寻址哈希表 */
* File: hash_map_open_addressing.cpp
* Created Time: 2023-06-13
* Author: Krahets (krahets@163.com)
*/
#include "./array_hash_map.cpp"
class HashMapOpenAddressing { class HashMapOpenAddressing {
private: private:
int size; // 键值对数量 int size; // 键值对数量
@ -1869,7 +1862,7 @@ comments: true
=== "Go" === "Go"
```go title="hash_map_open_addressing.go" ```go title="hash_map_open_addressing.go"
/* 链式地址哈希表 */ /* 开放寻址哈希表 */
type hashMapOpenAddressing struct { type hashMapOpenAddressing struct {
size int // 键值对数量 size int // 键值对数量
capacity int // 哈希表容量 capacity int // 哈希表容量