Pregunta de entrevista

Entrevista de Software Engineering Manager

-

NetApp

A IQ question: I have 9 coins and 8 have the same weight and the last one is heavier. I also have a balance beam to weigh the coins with. I can only use the balance beam 2 times to find the heavier coin. How do you find the heavier coin?

Respuesta

Respuestas de entrevistas

4 respuestas

28

Divide the coins into 3 piles of 3. Weigh the first 2 piles. If they balance then the heavier coin is in the 3rd pile otherwise its on the balance beam. Take the heavier pile and place 1 coin on each end of the beam. If they are equal then the heavier coin is the 3rd coin else it is on the beam.

Anónimo en

4

OMG... It says the last coin was heavier! FIND THE LAST COIN...duh!

ranree en

0

@ranee : The answer given is correct. If the heavier coin is in the 3rd pile , then take any two from them and weigh them . If they are equal , you can easily say the last coin is the heaviest , otherwise the heaviest coin is one of the two being weighed. If in the first go , you can get hold of the heavier pile , do the same procedure as above. You can easily find it by using the balance twice.

Anónimo en

0

This is a very famous question asked by both google and facebook in their interviews.

Siddharth Ajmera en

Añadir respuestas o comentarios

Para publicar un comentario sobre esto, inicia sesión o regístrate.