Subset sum problem: Difference between revisions

m
fixed HTML tag.
m (added whitespace and bullet points to the task's preamble, added a (bold) section (For example).)
m (fixed HTML tag.)
Line 4:
Implement a function/procedure/method/subroutine that takes a set/array/list/stream/table/collection of words with integer weights, and identifies a non-empty subset of them whose weights sum to zero (cf. the Dropbox [http://www.dropbox.com/jobs/challenges Diet] candidate screening exercise and the [[wp:Subset sum problem|Subset sum problem]] Wikipedia article).
 
:for;For example:
This set of weighted words, one solution would be the set of words:
:::*   {elysee,   efferent,   deploy,   departure,   centipede,   bonnet,   balm,   archbishop}