The Longest Palindromic The Longest Palindromic
RU FR English

Write a function that finds the longest palindromic substring of a given string. Try to be as efficient as possible!

If you find more than one substring you should return the one which is closer...

A text as a string.

The longest palindromic substring.

longestPalindromic("artrartrt") == "rtrartr"
longestPalindromic("abacada") == "aba"
longestPalindromic("aaaa") == "aaaa"

1 ≤ |text| ≤ 20
The text contains only ASCII characters.

You should be an authorized user in order to see the full description and start solving this mission.