Pregunta de entrevista de Glassdoor: "Suppose you had eight identi... | Glassdoor.com.mx

Pregunta de entrevista

Entrevista para Associate Account Manager Chicago, IL (Estados Unidos)

"Suppose you had eight identical balls. One of them is

  slightly heavier and you are given a balance scale. What's the fewest number of times you have to use the scale to find the heavier ball?"
Respuesta

Respuesta de la entrevista

3 respuestas

0

Group 1 Group 2
A B C D E F | G H

Weigh ABC vs DEF. If (for example) ABC is heavier then weigh A vs B. If A>B then you have your answer, if A=B then C is the heavier ball. Same scenario follows for DEF.

If ABC = DEF then weight G vs. H and you are done.

2 is the most efficient way to do this.

MB el 3 jul. 2019
0

Hey guys I used rooftop slushie to get an answer for this interview at Glassdoor. You should give it a try.

https://wwww.rooftopslushie.com

Anónimo el 10 jul. 2019
0

Really good lessons to get into top tech companies:

bit.ly/faang100

Anónimo el 15 oct. 2019

Agregar respuestas o comentarios

Para comentar esto, inicia sesión o regístrate.