Skip to content

Commit 4c0ca3c

Browse files
committed
Fixes Standard
1 parent 44afa53 commit 4c0ca3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dynamic-Programming/LongestPalindromicSubsequence.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const longestPalindromeSubsequence = function (s) {
1919
for (let i = 1; i < n; i++) {
2020
for (let j = 0; j < n - i; j++) {
2121
const col = j + i
22-
if (s[j] == s[col]) {
22+
if (s[j] === s[col]) {
2323
dp[j][col] = 2 + dp[j + 1][col - 1]
2424
} else {
2525
dp[j][col] = Math.max(dp[j][col - 1], dp[j + 1][col])

0 commit comments

Comments
 (0)