A piggy bank contains only coins. All of the coins are half-dollars except two; all the coins are quarters except two; and all of the coins are dimes except two. What is the total amount of money in the piggy bank.
Suppose the bag contains only two coins which are two 1 dollar coins. Then all the conditions are satisfied and the total amount is 2 dollars.
That's why aha:!!!!! questions are pointless in an interview... If the intereviewer asked this, and got the dollar coin answer, he'd think you were wrong instead of realizing how unconventionally correct your answer really is...
Michael H. Pryor
I think a more important question is how much interest are you earning by storing your savings in a piggy bank. By my calculation, none.
the total is 85 cents with one dime, one quater and 1 half dollar
Is there a general solution for this?
Or as my 14 year-old said, "It just has 2 pennies"
From what I can see, all means one.
Joel C. Taitt
So this question is incomplete. In order for there to be one solution, there needs to be a statement like "There are three coins in the bank." Or "What is the most money can you get from this piggy bank, under these constraints?"
Fred, it is complete.
Fog Creek Home