Microsoft
3.6 of 5 7,478 reviews
www.microsoft.com Redmond, WA 5000+ Employees

Microsoft Software Development Engineer In Test (SDET) Interview Question

"You have 9 marbles and one is slightly heavier than the rest. You also have a scale. How would you determine the heavier marble using the scale only twice?"
Add Tags [?]
Answer Flag Question

Part of a Software Development Engineer In Test (SDET) Interview Review - one of 3,342 Microsoft Interview Reviews

Answers & Comments

3
of 3
votes
The first time you use a scale, put three marbles on each side of the scale.

If the scale balances after the first time, put one of the remaining three marbles of each side of the scale; if the scale balances after this, the heaviest marble is the remaining one, otherwise it is the one on the heaviest side of the scale.

If the scale does not balance after the first time, put the marbles from the heaviest side in a pile, and from this pile, put one marble on each side of the scale. If the scale balances after this, the heaviest marble is the remaining one, otherwise it is the one on the heaviest side of the scale.
- Boris on Feb 27, 2013 Flag Response

To comment on this question, Sign In with Facebook or Sign Up


Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at Microsoft interview questions and advice. All interview reviews posted anonymously by Microsoft employees and interview candidates.