mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-25 21:23:21 +08:00
Retranslate the complete Japanese online edition from Chinese (#2008)
* Retranslate the complete Japanese online edition from Chinese * Fit Japanese homepage labels and localize heading permalinks * Point Japanese contribution instructions to the Japanese preview * Replace locale conditionals with multilingual UI tables
This commit is contained in:
@@ -24,7 +24,7 @@ function mulHash(key) {
|
||||
return hash;
|
||||
}
|
||||
|
||||
/* XOR ハッシュ */
|
||||
/* 排他的論理和ハッシュ */
|
||||
function xorHash(key) {
|
||||
let hash = 0;
|
||||
const MODULUS = 1000000007;
|
||||
@@ -44,17 +44,17 @@ function rotHash(key) {
|
||||
return hash;
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
const key = 'Hello アルゴリズム';
|
||||
/* 実行用コード */
|
||||
const key = 'Hello 算法';
|
||||
|
||||
let hash = addHash(key);
|
||||
console.log('加算ハッシュ値は ' + hash);
|
||||
console.log('加算ハッシュの値は ' + hash);
|
||||
|
||||
hash = mulHash(key);
|
||||
console.log('乗算ハッシュ値は ' + hash);
|
||||
console.log('乗算ハッシュの値は ' + hash);
|
||||
|
||||
hash = xorHash(key);
|
||||
console.log('XORハッシュ値は ' + hash);
|
||||
console.log('排他的論理和ハッシュの値は ' + hash);
|
||||
|
||||
hash = rotHash(key);
|
||||
console.log('回転ハッシュ値は ' + hash);
|
||||
console.log('回転ハッシュの値は ' + hash);
|
||||
|
||||
Reference in New Issue
Block a user