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

Commitf696d02

Browse files
committed
2 parents5503cce +2532e3c commitf696d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/algorithms/string/levenshtein-distance/levenshteinDistance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function levenshteinDistance(a, b) {
88
// substrings of a to substrings of b.
99
constdistanceMatrix=Array(b.length+1).fill(null).map(()=>Array(a.length+1).fill(null));
1010

11-
// Fill the firstraw of the matrix.
11+
// Fill the firstrow of the matrix.
1212
// If this is first row then we're transforming empty string to a.
1313
// In this case the number of transformations equals to size of a substring.
1414
for(leti=0;i<=a.length;i+=1){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp