hello-algo/codes/java/chapter_hashing
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
..
array_hash_map.java Add the codes of hashmap (#553) 2023-06-14 02:01:06 +08:00
built_in_hash.java Add Java and C++ code for the section hash algorithm (#560) 2023-06-21 19:26:16 +08:00
hash_map.java Rename the common modules in Java, C++ and C. 2023-04-24 04:11:18 +08:00
hash_map_chaining.java Fix the code of hash map chaining. 2023-08-01 17:05:40 +08:00
hash_map_open_addressing.java fix: Update hash_map_open_addressing.java (#727) 2023-09-21 04:39:21 -05:00
simple_hash.java feat: complete Dart codes for chapter_hashing (#566) 2023-06-25 20:57:37 +08:00