Palindrome Toss
CodeChefOpen on judge ↗
Jay has lost his favorite double headed coin. He wants to play with his friend, so he is thinking if he can create an interesting puzzle with a normal coin. He tosses a coin for a certain number of times and writes down all the results (**'H'** for heads and **'T'** for tails) on a paper, one beside the other. He calls this string as result string. Then he asks $Q$ questions to Veeru. In each que
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