McNuggets problem: Difference between revisions
m
→{{header|Haskell}}
m (→{{header|Haskell}}: slightly less duplication) |
|||
Line 320:
mcNuggets :: Set Int
mcNuggets =
let
in fromList $
\x ->
\y ->
\z ->
let v = sum [6 * x, 9 * y, 20 * z]
Line 337:
case uncons gaps of
Just (x, _) -> show x
Nothing -> "No unreachable quantities found ..."</
=={{header|JavaScript}}==
|