This commit is contained in:
krahets
2023-09-24 16:54:10 +08:00
parent d121762bc9
commit b26086fa35
6 changed files with 193 additions and 142 deletions

View File

@@ -1329,6 +1329,7 @@ index = hash(key) % capacity
```rust title="array_hash_map.rs"
/* 键值对 */
#[derive(Debug, Clone, PartialEq)]
pub struct Pair {
pub key: i32,
pub val: String,