sln_2015_17
Copyright(c) Eric Mertens 2021
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

Synopsis

Documentation

main :: IO () Source #

combinations :: Int -> [Int] -> Int -> [Int] -> [Int] Source #

Given a list of container sizes and an amount, return a list of the ways to chose a subset of those containers so that they sum to the desired amount. The resulting list is arranged by number of containers used. The nth element uses n-containers (zero-indexed).