MISSING VALUE Interview Questions

6,580,659 interview questions shared by candidates

Let's say you have 10 bags of nails, and each nail weights 10g. You also have a scale upon which you can weigh a combination of the bags or nails from the bags once. You know that one of the bags is off by a certain amount of grams, but you don't know which bag or by how much. How do you find out, with one weighing, which bag it is?
avatar

Associate

Interviewed at Capco

3.8
Apr 26, 2010

Let's say you have 10 bags of nails, and each nail weights 10g. You also have a scale upon which you can weigh a combination of the bags or nails from the bags once. You know that one of the bags is off by a certain amount of grams, but you don't know which bag or by how much. How do you find out, with one weighing, which bag it is?

Viewing 2041 - 2050 interview questions

Glassdoor has 6,580,659 interview questions. Prepare for your interview. Get hired. Love your job.