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 04:19, 12 August 2021
, 2 years ago→{{header|Haskell}}
(→{{header|Haskell}}: Allowed for denomination lists which are ill-sorted or incomplete.) |
|||
Line 120:
| otherwise = Left "Incomplete denominations - lacks 1"
where
go _ 0 = []
go (x : xs) n
|