|
-
Dec 13th, 2006, 04:42 AM
#1
Thread Starter
New Member
Two bottles of numbers
Hi all,
Do you have any suggestions for the following problem:
You've got n-Numbers (e.g. 1,2,3,4,5). Put them into two bottles, so that the difference between these two bottles is minimal. Output should be the minimal differnece.
First bottle contains: 3,4 (3+4=7)
Second bottle: 1,2,5 (1+2+5=8)
So the solution would be: 1 (minimal difference)
Any ideas how to solve that with a program?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|