Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for The Longest Palindromic by TovarischZhukov
def longest_palindromic(text):
i=len(text); k=1
while i>0:
for j in range(k):
val=text[j:j+i]
if val==val[::-1]: return val
i-=1
k+=1
March 2, 2016