Electronic Arts Interview Question: Given 100 white marbles and 1... | Glassdoor

Interview Question

Associate Software Engineer Interview Burnaby, BC (Canada)

Given 100 white marbles and 100 black marbles and two jaws

 . Put these marbles in the two jars in a way that would maximize the chance of retrieving a white marble from any given jaw.

Interview Answer

4 Answers


divide black marbles into the two jars first. then divide the white marbles on top of that in the two jars.

Nilesh on Mar 1, 2010

Really that is what you would answer? What if they stirred the jars around after you distributed the marbles?

Personally I think a better answer is to put 1 white marble in the first far and 99 white marbles and 100 black marbles in the second jar. If you choose the jar at random you now have a 74.87% chance of getting a white marble, regardless of the marbles position in the jar.

qq on Oct 8, 2011

qq is right, that is the optimum combination.

Yann on Dec 21, 2011

2 colours, 2 jars. White in one, black in the other

Anonymous on May 6, 2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.