We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4011a92 commit 0bcc46bCopy full SHA for 0bcc46b
longest_palindromic_substring/solution.py
@@ -13,7 +13,6 @@ def longestPalindrome(self, s):
13
t[i][j] = True
14
start = i
15
max_len = 2
16
- l = 3 # Length
17
for l in range(3, n + 1):
18
for i in range(n - l + 1):
19
j = i + l - 1
@@ -24,6 +23,6 @@ def longestPalindrome(self, s):
24
23
return s[start:start + max_len]
25
26
27
-a = 'faabaakcbc'
+a = 'akaa2baakcbbc'
28
s = Solution()
29
print s.longestPalindrome(a)
0 commit comments