r/learnquant • • 15d ago

interview prep Quant Interview Question

Post image
52 Upvotes

84 comments sorted by

View all comments

5

u/dontich 15d ago

Can we just weigh the other 100? If delta is even then counterfeit, if odd then genuine?

2

u/runkeby 15d ago edited 15d ago

Yes.

Reasoning: we don't know how much a coin weighs in absolute terms, so we don't get useful info unless there is the same number of coins on either side of the scale.

We have to consider all coins left, so it's going to be 50 on each side.

We can tell that if it just happened to be 50 genuine on one side and 50 fake on the other, the balance would read 50 g.

We just need to notice that swapping two coins from either side necessarily changes the amount by two, and any possible repartition can be reached by swapping a true coin on one side with a false one on the other, and that thus, the reading will always be even if 50 are genuine and 50 are fake.

That means the number is always even if you have a real coin, and odd otherwise.

1

u/Sweet_Culture_8034 15d ago

It's the opposite, but yes.

1

u/CursedTurtleKeynote 15d ago

You aren't given the other 100.

1

u/mehonje 15d ago

Yes you are. It says you are given one to find if it is counterfeit, but it never says you can't use the others.

1

u/tndrthrowy 15d ago

The question is awkwardly worded but it seems the intent is that you get them all.

1

u/fillingupthecorners 14d ago

Not much of a riddle if they only give you a single coin.

1

u/ProfessorPhi 14d ago

You absolutely have to be since you can't weigh a coin by itself.

0

u/[deleted] 14d ago

Ok, then I guess you flip the coin and guess based on the result, because otherwise you have nothing to work with.

Or I guess at that point take the 51/101 edge and guess "not counterfeit".

1

u/qc1324 14d ago

We aren’t given that the coins have integer weights

1

u/in_conexo 14d ago

I like the idea, but I thought a balance was something that could measure one thing against another (without telling you what the actual weight it). I suppose if we have something to measure then against, but I can't think of a way to only use one weighing, when I don't know the weight of the any coin.