← All problemsSign in

Coin Calculator

The King of Holumba Island has devised a coin system for exchange of goods and trade among the people. There are 4 coins provided by the king. The coins are of the value Rs. 1, Rs. 2, Rs. 3, and Rs. 5. Devise a coin calculator which finds out the number of coins required to compute an amount of money, such that a least amount of coins are needed. When there is more than one solution, the output sh

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