19 Commits

Author SHA1 Message Date
ff8e7ceec5 Several bug fixes. 2023-09-24 20:38:21 +08:00
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
6da6d24193 Fix the code of hash map chaining. 2023-08-01 17:05:40 +08:00
54dc288e61 1. Remove Pair class from hash coliision code.
2. Fix the comment in my_list code.
3. Add a Q&A to the summary of sorting.
2023-06-26 23:06:15 +08:00
62e8f0df50 feat: complete Dart codes for chapter_hashing (#566) 2023-06-25 20:57:37 +08:00
1b1af8d038 Add Java and C++ code for the section hash algorithm (#560) 2023-06-21 19:26:16 +08:00
9563965a20 Add the codes of hashmap (#553)
of chaining and open addressing
2023-06-14 02:01:06 +08:00
145975b335 Rename the common modules in Java, C++ and C. 2023-04-24 04:11:18 +08:00
de579aa3f4 Fix the file headers. 2023-04-23 19:36:07 +08:00
f8513455b5 Format the Java codes with the Reat Hat extension. 2023-04-14 00:12:10 +08:00
518b9efabc Update a comment in array_hash_map 2023-03-15 03:48:31 +08:00
d5afd93571 Update array_hash_map 2023-03-15 03:11:43 +08:00
3abcefae99 Update heap. 2023-01-12 04:08:45 +08:00
0e49f0053a Update the format of the file headers
of c, cpp, java, js, ts, swift.
2023-01-06 03:39:19 +08:00
e432f0b987 Merge branch 'krahets:master' into master 2022-12-16 09:18:48 +08:00
7a284b7a09 Update hashmap 2022-12-15 22:53:22 +08:00
aeb4e6077d Add C++, Python, Go code for chapter_hashing 2022-12-14 17:18:32 +08:00
d1efac36ca Update the chapter of hashing. 2022-12-06 01:00:21 +08:00
bc2561fb51 Add the chapter of hash map. 2022-12-05 02:37:16 +08:00