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;
汉明距离计算,非字符串
原文:https://blog.51cto.com/1348916/2474162