aspose file tools
The moose likes Programming Diversions and the fly likes Coin Stack Puzzle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Coin Stack Puzzle" Watch "Coin Stack Puzzle" New topic

Coin Stack Puzzle

Gunjan Kumar
Ranch Hand

Joined: Mar 26, 2007
Posts: 74

Just one puzzle to puzzle you guys.

I have five stack of 100 coins each. each coin weighs 10 gm in 4 stack and in one stack of coin, each coin weight 9 gm.

I have one weighing SCALE. In how many minimum steps, will you be able find the 9 gm coins stack?
[ June 19, 2007: Message edited by: Gunjan Kumar ]

Gunjan Kumar
SCJP 1.5
Vikrant Pandit
Ranch Hand

Joined: Mar 27, 2006
Posts: 245
This is a really old puzzle ...

Take 1 coin from 1st stack , 2 from 2nd on
Thus you will have 15 coins in total ..
Now weigh them ..

If 1st stack has 9 gms coins , the wieght will be 149 gms
If 2nd stack has 9 gms coins , weight will be 148 gms

and so on ..

Vikrant Pandit
Gunjan Kumar
Ranch Hand

Joined: Mar 26, 2007
Posts: 74
Thanks Vivek
I agree. Here's the link:
subject: Coin Stack Puzzle
It's not a secret anymore!