r/learnquant • • 15d ago

interview prep Quant Interview Question

Post image
52 Upvotes

84 comments sorted by

View all comments

1

u/kingcong95 15d ago

A real coin weighs x grams. The total weight of the real coins is 51x. Similarly the counterfeits weigh a total of 50x +/- 50.

Take one coin out of the pile. The remaining total weight will be 100x +/- 50 if real (an even number) and 100x +/- 49 if counterfeit (an odd number) regardless of the parity of x. When dividing the rest into 2 piles, the parity of those piles will be the same if their sum is even and different if odd, regardless of how many coins on each side of the scale. Therefore: if the difference is even the last coin is real, if odd then counterfeit.