Problem 214 · Hard
Prepend the fewest characters to make the string a palindrome using the KMP failure function.
Open the interactive visualisation