Mad Hatter and his strings
CodeChefOpen on judge ↗
Mad Hatter and Alice are on their way to the Tea Party. It's a very long journey to the palace where the party is held. On their way, Alice invites Hatter to play a game so that the could pass the time. Mad Hatter, being the repository of mad games, introduces a new game of strings to Alice. Alice is super exited to play this game. Hatter explains the rules of the game as below: Hatter gives Alic
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