mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-09 15:28:54 +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:
@@ -27,7 +27,7 @@ public class simple_hash {
|
||||
return (int) hash;
|
||||
}
|
||||
|
||||
/* XOR ハッシュ */
|
||||
/* 排他的論理和ハッシュ */
|
||||
static int xorHash(String key) {
|
||||
int hash = 0;
|
||||
final int MODULUS = 1000000007;
|
||||
@@ -48,18 +48,18 @@ public class simple_hash {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String key = "Hello アルゴリズム";
|
||||
String key = "Hello 算法";
|
||||
|
||||
int hash = addHash(key);
|
||||
System.out.println("加算ハッシュ値は " + hash);
|
||||
System.out.println("加算ハッシュの値は " + hash);
|
||||
|
||||
hash = mulHash(key);
|
||||
System.out.println("乗算ハッシュ値は " + hash);
|
||||
System.out.println("乗算ハッシュの値は " + hash);
|
||||
|
||||
hash = xorHash(key);
|
||||
System.out.println("XOR ハッシュ値は " + hash);
|
||||
System.out.println("排他的論理和ハッシュの値は " + hash);
|
||||
|
||||
hash = rotHash(key);
|
||||
System.out.println("回転ハッシュ値は " + hash);
|
||||
System.out.println("回転ハッシュの値は " + hash);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user