Skip to content

Commit cd2d187

Browse files
authored
Merge pull request TheAlgorithms#740 from bogdandv/master
Update LevenshteinDistance.java
2 parents ffd4521 + 8626309 commit cd2d187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dynamic Programming/LevenshteinDistance.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private static int calculate_distance(String a, String b) {
2525
distance_mat[0][j] = j;
2626
}
2727
for (int i = 0; i < len_a; i++) {
28-
for (int j = 0; i < len_b; j++) {
28+
for (int j = 0; j < len_b; j++) {
2929
int cost;
3030
if (a.charAt(i) == b.charAt(j)) {
3131
cost = 0;

0 commit comments

Comments
 (0)