Skip to content

Commit 8626309

Browse files
committed
Update LevenshteinDistance.java
1 parent ffd4521 commit 8626309

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)