Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: find the numbers that their sum equals to another number Date: Tue, 14 Jul 2015 07:59:12 -0400 Organization: A noiseless patient Spider Lines: 8 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 14 Jul 2015 11:57:47 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="858a9d65d95f4ea4d355bd116aa2cdbf"; logging-data="4391"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HNCivXUK/VbdoERZwYDsE" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 In-Reply-To: Cancel-Lock: sha1:5gL4V9XCXKjOaCzA++LXfF6ahNU= Xref: csiph.com comp.lang.java.programmer:32004 On 7/14/2015 2:49 AM, ayman daraghmah wrote: > I've a set of numbers , and another number , I want to write a program to find which numbers from set their sum equals the other number . https://en.wikipedia.org/wiki/Subset_sum_problem -- esosman@comcast-dot-net.invalid "Don't be afraid of work. Make work afraid of you." -- TLM