Find minimum number of coins that make a given value: Difference between revisions
Find minimum number of coins that make a given value (view source)
Revision as of 13:53, 2 November 2023
, 7 months ago→J: without side effects
(→J: add) |
(→J: without side effects) |
||
Line 716:
=={{header|J}}==
<syntaxhighlight lang="j">
1 2 5 10 20 50 100 200 coins 988</syntaxhighlight>
{{out}}
<pre>
1 1 1 1 1 1 1 4</pre>
=={{header|JavaScript}}==
|