Questions d'entretien

Entretien pour Enterprise Account Manager

-Mill Valley, CA

Glassdoor

If you had 9 balls, all of the same color and size - but, one weighed more than all of the others of equal weight - using a balance scale and only two opportunities to weigh the balls, how would you go about locating this ball?

Répondre

Réponses aux questions d'entretien

3 réponse(s)

2

Split the 9 balls into 3 groups of 3. Weight two random groups against each other. If it tilts then take 2 random balls from the heavier group to weight, one on each side. If it balances, the heavy ball is the one you didn't weight. If it tilts you know which one is the heaviest. In the first weigh-in, if it balances you know that the heavy ball is in the third group of 3 you didn't weigh. So you take 2 random balls from that group and weigh them one on each side.If it balances, the heavy ball is the one you didn't weight. If it tilts you know which one is the heaviest.

Utilisateur anonyme le

2

Like a google question. Put all nine on the scale. You weigh 4:5. Then remove one. Whichever way the balance tilts has the heavier ball(unless you luckily pick the heavier ball and they balance out and you get it on the first shot). Remove the 4 balls that weigh less. Now you only have 4 balls. One of which you know is the heavier ball. Place two balls on either side of the scale again. Tada!

Utilisateur anonyme le

5

I drew it out on paper to figure out the answer. This was actually the only fun part of the interview.

Utilisateur anonyme le

Ajouter des réponses ou des commentaires

Pour commenter ceci, connectez-vous ou inscrivez-vous.