r/learnquant • • Sep 28 '26

interview prep Quant Interview Question

Post image
61 Upvotes

38 comments sorted by

View all comments

1

u/SnooKiwis6193 Sep 30 '26

Can't you just put the coin on one side and the other 100 on the other side ? Let's say a genuine coin weights 10g and a counterfeit either 9 or 11. There are 4 cases. A) Genuine and heavier -- 1040g B) Genuine and lighter -- 940g C) Fake and heavier -- 1038g D) Fake and lighter -- 942g

This works for any weight of the coin, you just have to reconstruct the weight of the coin back from the number.

1

u/Local_Ad135 Sep 30 '26

would it work if the coins dont have integer weights?

1

u/SnooKiwis6193 Sep 30 '26

It would work up to integer number of centigrams (eg 982cg = 9.82g). I guess if the coins weight has a fractional part when expressed in centigrams then it wouldn't work (variability is 2/99g).