Microsoft Interview Question: "There are 9 jars. 8 jars con... | Glassdoor

Interview Question

Software Developer Interview

"There are 9 jars. 8 jars contain marbles which each marble

  weights 1 gram, and 1 jar contains marbles weight 1.1 gram. With a scale display number, how can define which jar contain 1.1 gram marble with only 1 scale."

Interview Answer

1 Answer


Take one pill from 1st bottle, 2 pills from 2nd bottle, 3 pills from 3rd ..... 9 pills from 9th bottle. Depending on the display we will know which bottle has 1.1 gram tablet.

Shrinivass AV on May 22, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.