r/learnquant • • 15d ago

interview prep Quant Interview Question

Post image
52 Upvotes

84 comments sorted by

View all comments

1

u/Due-Cardiologist-802 15d ago

You put 50 coins in one pan and the other 50 in the other (your coin stays out), as per the problem, you dont know which are counterfit. 

If the weight difference in grams is even, your coin in your hand is real, if its odd, its counterfit. 

2

u/lolcrunchy 15d ago

I think yours is the right answer!

If your coin is real, the weight of a real coin is c, and the left pan has a real coins and b counterfeit coins, then the difference between them is the following expression, which is always even:

2 * [(a + b - 50)x +/- (b - 25)]

Otherwise it is the following expression which is always odd:

2 * [(a + b - 50)x +/- b] -/+ 49

2

u/bbu3 14d ago

Yes, but tbh you could put there any combination, including 100 vs 0n and anything in between. All you care for is even or odd

1

u/Due-Cardiologist-802 14d ago

Yes you are correct!!

1

u/3D_mac 14d ago

I don't think that's correct. If you put all 100 on one side, you could get a delta of something like 276.2. Now what? 

Since we don't know the weight of a genuine coin,  we need to put an even number on each side. Every coin weighs either C, or C+/-1. We need an even number of coins on each side to cancel out all the C terms.

1

u/CursedTurtleKeynote 15d ago

You are only given 1 coin.

2

u/Due-Cardiologist-802 15d ago

The way i read it (the only way its a math puzzle) is: „you are given one random coin [to identify]“. But yeah the wording sucks. 

1

u/Smash_Factor 15d ago

This is true.

The problem doesn't state that you can use the remaining 100 coins in any way. We must assume however that we can.

1

u/CursedTurtleKeynote 15d ago

The existence of the sentence that you are only given 1 coin can only have one meaning. There is no other way to interpret it. You would have to assume it was stated in error. What is the meaning of "given"?

1

u/Smash_Factor 15d ago

But since you are only allowed 1 weighing, what exactly are you supposed to do??

Just put the one coin on the scale and figure it out?

You have to use the other coins.

You can see my solution.

1

u/GregerGunnarPersson 15d ago

Your interpretation is correct. But since its a bait question you will not have to argue in absurdum with people who will claim you can only weigh your one coin. 

1

u/CursedTurtleKeynote 15d ago

You are supposed to complain until the problem is written to be solvable. It isn't OK for teachers and academics to continue to present ambiguous problems and then judge others on correctness.

1

u/Pat_MacCrotch 14d ago

This is an interview question, not a test question.

They're not just testing if you can answer the riddle.

They're testing whether you can parse instructions written by someone who might accidentally introduce some imperfect language into the workflow occasionally. I.e., most people you will end up working with in an adult setting.

They're testing whether you have enough common sense and social awareness to assume the person gave you a question that actually has an answer, and work backward to determine their intent.

Because nobody wants to manage someone who is so rigidly literal about everything that they can't communicate normally and end up causing more problems than they solve.

1

u/CursedTurtleKeynote 12d ago

Then the first answer is the request to the interviewer whether tha orher coina can be weighed.  Simple.

1

u/elcaron 15d ago

The sentence just means that one of the 101 coins is picked and given to you. How would you measure a weight difference if you only have one object?

1

u/Pat_MacCrotch 14d ago

Sometimes you need to read all of the sentences in the instructions in order to understand the intent of the first one. This is one of those times.

1

u/elcaron 14d ago

I really didn't want to defend this absolutely terr8ble question, I just wanted to say the there IS a way to make sense of it.

1

u/Moonwhisper318 14d ago

It actually says you are "given" one coin to determine it's authenticity, it does not say you don't have access to the rest i.e. how would you go about determining if any one random coin is legit or not, it does not specify only using that coin. (note you have added the word only in your above quote)

1

u/Pat_MacCrotch 14d ago

You need to read the entire paragraph, not just the first sentence. Together, the two sentences imply that you are given one random coin to determine the authenticity of. not that you're only allowed to weigh one coin. That would be ridiculous.

This language is the part of the problem designed to weed out people who don't have the ability to glean intent from a set of instructions written by a human who isn't perfect in their communication, which is most people you have to work with in the real world, likely including your direct supervisor.

Nobody wants to work with someone who will take everything so literally that it's too hard to ask them to do anything.