Questions d'entretien

Entretien pour Machine Learning Scientist

-

Amazon

How do you weight 9 marbles three times on a balance scale to select the heaviest one.

Répondre

Réponses aux questions d'entretien

3 réponse(s)

0

Do they all have the same weight except for one?

Paolo le

0

I think the question is the rest of the 8 balls are the same weight. In that case you can find the heaviest in 2 tries.

Xiaoshu Liu le

2

First weight 4 vs 4. If they're the same => the last one is the haviest. If not, weight 2 vs 2 of the haviest 4. Then weights 1 vs 1 of the haviest 2.

Aaron le

Ajouter des réponses ou des commentaires

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