Find two sets which has same Summed total from a set.

Hi,Give me a simple solution to get two set from a set of number while those two sets have the Summed totals are same.it's like dis..set {1,2,3,6,8}the answer will be...set1{1,3,6} total=10set2{2,8}total=10
[256 byte] By [T_vimalarajaha] at [2007-11-27 5:05:13]
# 1

Do you want somebody to write your code for you: why? I mean, why would they, but also why would you want them to. The whole thing seems pointless.

Note: it might be argued that empty sets don't have sums, so the best solution to your problem is to generate a set containing the first element from your given set ... twice.

[Edit] Also, an answer was given to you when you hijacked this thread: http://forum.java.sun.com/thread.jspa?threadID=5113852&messageID=9670715#9670715

pbrockway2a at 2007-7-12 10:23:38 > top of Java-index,Java Essentials,New To Java...