feat: complete Dart codes for chapter_hashing (#566)

This commit is contained in:
liuyuxin
2023-06-25 20:57:37 +08:00
committed by GitHub
parent ff58d4113c
commit 62e8f0df50
7 changed files with 415 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/**
* File: hash_map_chaining.java
* File: hash_map_open_addressing.java
* Created Time: 2023-06-13
* Author: Krahets (krahets@163.com)
*/

View File

@ -32,7 +32,6 @@ public class simple_hash {
int hash = 0;
final int MODULUS = 1000000007;
for (char c : key.toCharArray()) {
System.out.println((int)c);
hash ^= (int) c;
}
return hash & MODULUS;