Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Longest Palindromic by sts10131
def longest_palindromic(text):
s1=text[0]
s2=""
begin=0;
end=0;
isPalindrom=0;
for x in range(0,len(text)-1):
for y in range(1,len(text)):
for z in range(x,y//2):
begin=x
end=y
while begin=end:
s2=text[x:y+1]
if len(s1)
Dec. 27, 2016