Available question text
Given a string s, return the shortest palindrome obtainable by adding characters only to the front. This is equivalent to finding the longest palindromic prefix and prepending the reverse of the remaining suffix, typically solved in linear/near-linear time using KMP, Manacher, or rolling-hash techniques.
Related questions
Continue with questions that share topics or the same question type.
- Break a Palindrome
Coding
- Can Make Palindrome from Substring
Coding
- Construct K Palindrome Strings
Coding
- Count Paths That Can Form a Palindrome in a Tree
Coding · Bit Manipulation · Depth-First Search · Hash Table
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 214. Shortest Palindrome
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source