Electronic Arts

  www.ea.com
Work in HR? Unlock Free Profile

Electronic Arts Associate Software Engineer Interview Question

I interviewed in Burnaby, BC (Canada) and was asked:
"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."
Add Tags [?]
Answer

Part of a Associate Software Engineer Interview Review - one of 196 Electronic Arts Interview Reviews

Answers & Comments

2
of 6
votes

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
6
of 8
votes

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
0
of 0
votes

qq is right, that is the optimum combination.

- Yann on Dec 21, 2011

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.