← All problemsSign in

Crazy Hamster Wheel

Danny pets a hamster named Cody. It is a well known fact that hamsters love running. But unfortunately the hamster wheel will only start spinning if he solves a number puzzle. Cody is given a number **$N$** where some of its digit are $‘x’$. In order to solve the puzzle he has to find all the digits $‘x’$ such that the number $N$ is the largest possible number divisible by 9. Help Cody to find

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