Ordering coins with least possible resources | SoloLearn: Learn to code for FREE!

-1

Ordering coins with least possible resources

Hi all. I have a question regaring JavaScript: What is the fastest/least resource intensive way of determing the least amount of coins, a certain amount can be converted to? Context: I have been trying to make a function for a Dungeons & Dragons character sheet in Adobe Acrobat DC (which uses JavaScript), and all methods I've found so far are very labour intensive, by either counting or guessing. Attached is the best I've been able to think up myself. https://code.sololearn.com/WDI8jnmMYyoI/?ref=app

10/26/2017 8:21:55 AM

Claus G. Madsen

0 Answers

New Answer