Skip to content

Commit e9fe0ce

Browse files
committed
Again some style fixed
1 parent fdc34c3 commit e9fe0ce

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dynamic-Programming/LongestCommonSubsequence.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
function longestCommonSubsequence (x, y, str1, str2, dp) {
88
if (x === -1 || y === -1) {
99
return 0
10-
}
11-
else {
12-
if (dp[x][y] !== 0){
10+
} else {
11+
if (dp[x][y] !== 0) {
1312
return dp[x][y]
14-
}
15-
else {
13+
} else {
1614
if (str1[x] === str2[y]) {
1715
dp[x][y] = 1 + longestCommonSubsequence(x - 1, y - 1, str1, str2, dp)
1816
return dp[x][y]

0 commit comments

Comments
 (0)