BREAK IT
CodeChefOpen on judge ↗
Gita and Babita are playing a game “Break it”, in which one will give a random word and the other has to find the palindromes in it. The points for the other player is directly proportional to the number of cuts made in that word to extract the palindromes from it. The twist is that number of palindromes extracted should be minimum. INPUT FORMAT The first line of the input contains a single in
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