Find minimum number of coins that make a given value: Difference between revisions
Content added Content deleted
(→{{header|AppleScript}}: Added a version in AppleScript) |
|||
Line 26:
{}
else
set {x, xs} to {item 1 of units, rest of units}
set q to n div x
if 0 = q then
change(
else
{{q, x}} & change(
end if
end if
Line 118:
1 * 2
1 * 1</pre>
=={{header|F_Sharp|F#}}==
|