← All problemsSign in

Centered String

Hussain wants to display words uniquely outside his shop chefcities. He wishes to highlight a word $W$ by placing the letters vertically and centrally aligned just like a crossword on a billboard. The problem is that he has to choose the letters from a string $S$. The original word must have characters in such a way that after breaking up the string, the central characters from each substring form

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