In the Wizarding World, the Ministry of Magic decided to introduce a new system of currency to celebrate the downfall of an evil wizard. They decided to have a set of coins with denomination {25, 15, 1}. i.e, the 25 galleon coin, 15 galleon coin and the 1 galleon coin. Given an item worth 'N' galleons, the wizards need to pay using the least number of coins possible. For example if an Owl cots 16 Galleons, then they can pay using 2 coins: one 15 Galleon coin and one 1 Galleon coin, which would be the least number of coins in this case. Which of the following options describe an algorithm that the people in the wizarding world can use to achieve this?
This problem is a part of Tessellate S.T.E.M.S.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
No explanations have been posted yet. Check back later!