diff --git a/codes/cpp/chapter_hashing/simple_hash.cpp b/codes/cpp/chapter_hashing/simple_hash.cpp index 66dc8b406..2cc0247b2 100644 --- a/codes/cpp/chapter_hashing/simple_hash.cpp +++ b/codes/cpp/chapter_hashing/simple_hash.cpp @@ -31,7 +31,6 @@ int xorHash(string key) { int hash = 0; const int MODULUS = 1000000007; for (unsigned char c : key) { - cout << (int)c << endl; hash ^= (int)c; } return hash & MODULUS; diff --git a/docs/chapter_hashing/hash_algorithm.md b/docs/chapter_hashing/hash_algorithm.md index 9f1fb152d..38acf2b8f 100644 --- a/docs/chapter_hashing/hash_algorithm.md +++ b/docs/chapter_hashing/hash_algorithm.md @@ -442,7 +442,7 @@ $$ === "C" ```c title="built_in_hash.c" - + // C 未提供内置 hash code 函数 ``` === "Zig"