⚡ Build the skills to land top-paying quant jobs. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
⚡ Build the skills to land top-paying quant jobs. Offer ends in 19d 08h 37m 18s19 days 8 hours 37 minutes 18 seconds.
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