Shortest Palindrome by Prepending
Hard
Palindromes
You may add characters only at the front of s. Print the shortest palindrome you can form.
Constraints
0 <= |s| <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.