Question 957191: There is 1000 coins, divide 1000 coins in 10 boxes in such a way that if anyone ask any amount between 1 and 1000, you should give me boxes amounting that money. You do not need to get coins from boxes, just give boxes.
Please solve this puzzle without binary method
Answer by ankor@dixie-net.com(22740) (Show Source):
You can put this solution on YOUR website! There is 1000 coins, divide 1000 coins in 10 boxes in such a way that if anyone ask any amount between 1 and 1000, you should give me boxes amounting that money.
You do not need to get coins from boxes, just give boxes.
:
The no. of coins in the first 9 boxes:
1,2,4,8,16,32,64,128,256; that a total of 511 coins
therefore the last box; 1000 - 511 = 489 coins in the 10th box
From these 10 boxes you should be able to make any amt
|
|
|