Skip to content

Commit

Permalink
Correct the syntax mistake of the existing comments that explain the …
Browse files Browse the repository at this point in the history
…way we use nested `for loops` (an outer `for loop`, and an inner `for loop`) for the coursera's algorithmic toolbox's module 05 dynamic programming, programming assignment 01, problem number 03 | Edit Distance (Match String) | 050editDistanceMatchStrings.kt.
  • Loading branch information
sagarpatel288 committed Jan 7, 2025
1 parent 4752eaa commit 2d3cf3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ package coursera.ucSanDiego.module05DynamicProgramming.module05ProgrammingAssign
* ```
* /**
* * If `n` is the length of the target string, and `m` is the length of the reference string,
* * and the 2D-array is `table[r][c]` = `operations[n + 1][m + 1]`,
* * and the 2D-array is `table[r][c]` = `operations(n + 1)(m + 1)`,
* * and we want to cover the case when the `reference string` is empty,
* * we iterate from index `0` up to `n` to cover each row, because the size of the row is `n + 1`.
* * And we hard-code the value for each column to `0` to indicate that there is no character.
Expand Down

0 comments on commit 2d3cf3a

Please sign in to comment.