← All problemsSign in

Pinocchio

Just like the Pinocchio from the childhood classic, our Pinocchio has the worst habit in the world - lying. But instead of a prolonging nose, Pinocchio has a shrinkable memory, such that every time he lies to somebody, his memory reduces to some degree from its present capacity. It’s Friday morning and Pinocchio is in his office, analyzing survey responses from the customers. Pinocchio’s team has

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