← All problemsSign in

Making Palindromes

Nitin Kumar learned about palindrome and was fascinated that his first name is a palindrome. He saw that if he adds 10 letters to his name ‘ramuK nitiN’ it becomes a palindrome. Write a function Palindrome(s) that accepts a string s with both uppercase and lowercase and spaces. The function returns the smallest string that converts s into palindrome by adding it in front of s. If input string alre

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start