← All problemsSign in

Sweets and Coins

Arun has a sweet shop and serves many customers on a given day. On one particular day when business was a bit slow, he was sitting idle and thinking about a problem. Since he has a big shop and has an unlimited supply of coins of value Rs.1, Rs. 5 and Rs. 10. He wants to know the number of ways can he make the change for a given amount N. Write a program to output the number of ways he can make

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