← All problemsSign in

Whack a mole

Lakshmanaram spends his day off of work by going to the local arcade. He sees there's a new whack-a-mole game there, and decides to give it a shot. Whack-a-mole is a game where small toy moles appear at random from holes in the game board which then have to be whacked. With n coins in his pocket, character has the opportunity to whack n moles. There are 3 things displayed on the top of the game b

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