标签:== rar 字符串 get int ret array gdi 计算
public int hammingDistance(int x, int y) {char[] strChars = str.toCharArray();
char[] targetChars = target.toCharArray();
int count = 0;
for (int i = 0; i < 1280; i++) {
if (strChars[i] == targetChars[i]) {
count++;
}
}
return 1280-count;
标签:== rar 字符串 get int ret array gdi 计算
原文地址:https://blog.51cto.com/1348916/2474162