mirror of
https://github.com/krahets/hello-algo.git
synced 2026-02-11 06:35:39 +08:00
feat: complete Dart codes for chapter_hashing (#566)
This commit is contained in:
@@ -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