Update LevenshteinDistance.java

This commit is contained in:
bogdandv 2019-04-20 21:58:35 +03:00
parent ffd4521601
commit 86263090ff

View File

@ -25,7 +25,7 @@ public class LevenshteinDistance {
distance_mat[0][j] = j;
}
for (int i = 0; i < len_a; i++) {
for (int j = 0; i < len_b; j++) {
for (int j = 0; j < len_b; j++) {
int cost;
if (a.charAt(i) == b.charAt(j)) {
cost = 0;