News for hackers. Stuff that matters.
Re:How a 19-Year-Old Raised $5 Million to Revolutionize Search by ntoshev on Tuesday March 01, 2011 @03:26PM (#2277040)
Python:

max((s[start:end] for start in xrange(len(s)) for end in xrange(start, len(s)) if s[start:end]==s[start:end][::-1]), key=len)

There are no comments on this comment yet.