Skip to content

Commit

Permalink
got rid of newline
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysim committed Apr 8, 2022
1 parent 640f862 commit 7e4d8c0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion javascript/1143-Longest-Common-Subsequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ var longestCommonSubsequence = function (text1, text2) {
for (let i = 1; i <= m; i++) {
for (let j = 1; j <= n; j++) {
if (text1.charAt(i - 1) !== text2.charAt(j - 1)) {

table[i][j] = Math.max(table[i - 1][j], table[i][j - 1]);
} else {
table[i][j] = table[i - 1][j - 1] + 1;
Expand Down

0 comments on commit 7e4d8c0

Please sign in to comment.