mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-20 23:41:00 +00:00
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:
+16
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user