Wrong question in Feb Lunchtime "PALPALS"

Problem Link: PALPALS Problem - CodeChef

Condition 1:
“Each character of the whole string belongs to exactly one substring.”

If this above statement is true then how explanation is correct in
test case → xyxyxy

Example case 3: The string “xyxyxy” is already a Palpal string, since it can be divided into “xyx” and “yxy”.

In the case of “xyx” and “yxy”, it violates the1st condition(because of x and y is used in both substrings while they must be in exactly one), so how “xyx” and “yxy” is a possible answer?

It should have been xxx and yyy .

I spent 2 hrs on this in the contest and now not getting any reply. Really a Bad contest.

1 Like

The statement could be written clearly. But in these situations, it is best to ask a clarification in the comments section.
Anyways, it is clear from the sample explanation what the author actually meant.

1 Like