← All problemsSign in

Encrypted palindrome

Shubham loves palindromes. And he loves them so much so that he is willing to transform the strings he has to turn them to palindromes. Formally, given a string s, he takes subset of the characters of s and arranges them to form a palindrome. He wants to do it in such a way that length of palindrome is as big as it can get. To save the strings from transformations, the government has decided to

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