← All problemsSign in

Palindrome Game

Palindrome Problem Gopu and Dholu are playing a new Palindrome game. Marbles of 10 different colours are used in the game, each labelled with a English letter from "A" to "J" both inclusive. First Gopu starts the game by placing one marble of any type, next Dholu place his marble next to Gopu's marble and game proceeds. In each turn one can place only one marble. After some time both agree to sto

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