hello-algo/codes
lyl625760 45e20e57a1
fix: Update hash_map_open_addressing.java (#727)
* FixBug:Update hash_map_open_addressing.java

1. put keyA, hashFunc 在位置 5
2 put key B, hashFunc 在位置  5. 和 A冲突,插入位置6
3. remove keyA,位置5removed
4. put keyB, hashFunc 在位置  5. 没有冲突,插入位置5
5. remove keyB, 位置5removed
6. get keyB, 此时会出bug,会访问到位置6. 实际上应为keyB 已经删除了

* Update hash_map_open_addressing.java

* Update hash_map_open_addressing.java

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-09-21 04:39:21 -05:00
..
c Fix unreleased memory error (#769) 2023-09-19 23:53:45 +08:00
cpp Several bug fixes. 2023-09-20 01:53:44 +08:00
csharp fix build_tree, binary_search_tree.cs 2023-09-15 02:08:09 +08:00
dart fine tune 2023-09-17 01:13:15 +08:00
go fix build_tree, binary_search_tree.cs 2023-09-15 02:08:09 +08:00
java fix: Update hash_map_open_addressing.java (#727) 2023-09-21 04:39:21 -05:00
javascript Several bug fixes. 2023-09-20 01:53:44 +08:00
python fine tune 2023-09-17 01:13:15 +08:00
rust fix build_tree, binary_search_tree.cs 2023-09-15 02:08:09 +08:00
swift fix build_tree, binary_search_tree.cs 2023-09-15 02:08:09 +08:00
typescript Several bug fixes. 2023-09-20 01:53:44 +08:00
zig fix climbing_stairs_constraint_dp code 2023-08-31 02:31:58 +08:00