Finding the Longest Palindromic Substring in Linear Time

from blog Fred Akalin, | ↗ original
/**/ function trackOutboundLink(url) { ga('send', 'event', 'outbound', 'click', url, { 'hitCallback': function() { document.location = url; } }); } Another interesting problem I stumbled across on reddit is finding the longest substring of a given string that is a palindrome. I found the explanation on Johan Jeuring's blog somewhat...