Find minimum number of coins that make a given value: Difference between revisions

m
(→‎{{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(rest of unitsxs, n)
else
{{q, x}} & change(unitsxs, n mod x)
end if
end if
Line 118:
1 * 2
1 * 1</pre>
 
 
=={{header|F_Sharp|F#}}==
9,655

edits