mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 12:58:42 +08:00
feat: complete Dart codes for chapter_hashing (#566)
This commit is contained in:
@ -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)
|
||||
*/
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user