214. Shortest Palindrome
Last updated
Was this helpful?
Last updated
Was this helpful?
Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by performing this transformation.
GeeksforGeeks
YouTube
Input: "aacecaaa"
Output: "aaacecaaa"