Interview Question

Associate Software Engineer Interview

-Burnaby, BC

Electronic Arts

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.

AnswerAdd Tags

Interview Answers

4 Answers


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


qq is right, that is the optimum combination.

Yann on


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

Anonymous on


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

Nilesh on

Add Answers or Comments

To comment on this, Sign In or Sign Up.