mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
Format C, C++, C#, Go, Java, Python, Rust code.
This commit is contained in:
@ -31,7 +31,7 @@ int xorHash(string key) {
|
||||
int hash = 0;
|
||||
const int MODULUS = 1000000007;
|
||||
for (unsigned char c : key) {
|
||||
cout<<(int)c<<endl;
|
||||
cout << (int)c << endl;
|
||||
hash ^= (int)c;
|
||||
}
|
||||
return hash & MODULUS;
|
||||
|
||||
Reference in New Issue
Block a user