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

Appearance settings

Commit cd2d187

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎Dynamic Programming/LevenshteinDistance.java‎

Copy file name to clipboardExpand all lines: Dynamic Programming/LevenshteinDistance.java
+1-1Lines 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 (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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.