Longest palindromic substrings: Difference between revisions
Content deleted Content added
Line 94: | Line 94: | ||
<lang haskell>-------------- LONGEST PALINDROMIC SUBSTRINGS ------------ |
<lang haskell>-------------- LONGEST PALINDROMIC SUBSTRINGS ------------ |
||
longestPalindromes :: String -> ([String], Int) |
longestPalindromes :: String -> ([String], Int) |
||
longestPalindromes s = (filter ((w ==) . length) xs, w) |
longestPalindromes s = (filter ((w ==) . length) xs, w) |