Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd2d187

Browse files
authored
Merge pull requestTheAlgorithms#740 from bogdandv/master
Update LevenshteinDistance.java
2 parentsffd4521 +8626309 commitcd2d187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Dynamic Programming/LevenshteinDistance.java

Lines changed: 1 addition & 1 deletion
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 (inti =0;i <len_a;i++) {
28-
for (intj =0;i <len_b;j++) {
28+
for (intj =0;j <len_b;j++) {
2929
intcost;
3030
if (a.charAt(i) ==b.charAt(j)) {
3131
cost =0;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp