Home > Logic
Ten Items and Two Boxes (Posted on 2013-08-12) |
|
You have two boxes, one is filled with 10 items and the other is empty. You are allowed to transfer items one at a time from one box to the other (transfers may to either way).
There are 2^10=1024 ways to split the items between the two boxes. Can you make all the ways without repetition using only the transfer rule described above?
|
Submitted by Brian Smith
|
No Rating
|
|
Solution:
|
(Hide)
|
An implementation of a binary Gray code will perform the task, as Charlie explains here. |
Comments: (
You must be logged in to post comments.)
|
|
Please log in:
Forums (1)
Newest Problems
Random Problem
FAQ |
About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On
Chatterbox:
|