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 21:43, 10 September 2021
, 2 years ago→{{header|JavaScript}}
m (→{{header|JavaScript}}: Additional comment line.) |
|||
Line 305:
() => {
const [h, ...t] = denominations;
const
return (
Line 311:
[q, h]
] : []
).concat(change(t)(
}
)() : [];
Line 346:
-x
) : x;
|