feat: add rust code for build_in_hash and hash_collision (#629)

* Create hash_map_chaining.rs

* Create hash_map_open_addressing.rs

* Create build_in_hash.rs

* Update Cargo.toml
This commit is contained in:
WangSL
2023-07-26 15:42:47 +08:00
committed by GitHub
parent b9b324b298
commit 13bb76c283
4 changed files with 411 additions and 1 deletions
+16 -1
View File
@@ -89,6 +89,21 @@ path = "chapter_hashing/hash_map.rs"
name = "array_hash_map"
path = "chapter_hashing/array_hash_map.rs"
# Run Command: cargo run --bin build_in_hash
[[bin]]
name = "build_in_hash"
path = "chapter_hashing/build_in_hash.rs"
# Run Command: cargo run --bin hash_map_chaining
[[bin]]
name = "hash_map_chaining"
path = "chapter_hashing/hash_map_chaining.rs"
# Run Command: cargo run --bin hash_map_open_addressing
[[bin]]
name = "hash_map_open_addressing"
path = "chapter_hashing/hash_map_open_addressing.rs"
# Run Command: cargo run --bin binary_search
[[bin]]
name = "binary_search"
@@ -375,4 +390,4 @@ name = "max_product_cutting"
path = "chapter_greedy/max_product_cutting.rs"
[dependencies]
rand = "0.8.5"
rand = "0.8.5"