http://www.perlmonks.org?node_id=11123880


in reply to Find combination of numbers whose sum equals X

I think this is known as the Subset Sum Problem.

-QM
--
Quantum Mechanics: The dreams stuff is made of