Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 09m 31s1 days 16 hours 9 minutes 31 seconds.
Guide: Quant Brainteasers: 10 Classic Interview Puzzles and the Idea Behind Each
Imagine you are presented with bags, each containing coins. All coins within a single bag are of the same type, but you do not know which type each bag holds: a bag's coins weigh either grams, grams, or grams each. You may take out any number of coins from any bag, and you have a digital scale that accurately shows the total weight of whatever you put on it. What is the minimum number of times you need to use the scale to determine the type of coin each bag contains?
Related Problems