mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-13 18:00:18 +08:00
fix: check the rust codes and fix them (#653)
* fix: check the rust codes and fix it * Update binary_tree_bfs.rs --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
@@ -43,6 +43,7 @@ impl ArrayHashMap {
|
||||
/* 删除操作 */
|
||||
pub fn remove(&mut self, key: i32) {
|
||||
let index = self.hash_func(key);
|
||||
// 置为 None ,代表删除
|
||||
self.buckets[index] = None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user