Shortest Palindrome — String Algorithms

Add the fewest letters to the front of a lowercase code so the whole thing becomes mirror-symmetric, and return the result.

String Algorithms · Hard

More in String Algorithms

All algorithm problems