LeetCode 214: Shortest Palindrome
Problem Restatement We are given a string s . We may add characters only in front of s . We need to return the shortest palindrome that can be created this way. The official statement says we can convert s to a palindrome by adding characters in front of it, and we must return the shortest palindrome possible. Input and Output Item Meaning Input String s Output Shortest palindrome formed...