Palpal Strings
A string is called a *Palpal string* if it can be divided into contiguous substrings such that: - Each character of the whole string belongs to exactly one substring. - Each of these substrings is a palindrome with length greater than $1$. For example, "abbbaddzcz" is a Palpal string, since it can be divided into "abbba", "dd" and "zcz". You are given a string $s$. You may rearrange the ch
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.
Sign in to chat with the tutor and save your progress.
Sign in to start