214. Shortest Palindrome
Problem Statement
Input: s = "aacecaaa"
Output: "aaacecaaa"Input: s = "abcd"
Output: "dcbabcd"Intuition
Links
Video Links
Approach 1:
Approach 2:
Approach 3:
Approach 4:
Similar Problems
Previous28. Find the Index of the First Occurrence in a String / KMP AlgorithmNext1392. Longest Happy Prefix
Last updated