Pergunta de entrevista da empresa Synopsys

What is the highest floor you can drop an egg from without it cracking?

Respostas da entrevista

Sigiloso

12 de jan. de 2018

If you have one egg start dropping the egg from the first floor. On whatever floor it breaks, is your answer. That is linear seach. If you have multiple eggs first drop the egg from middle of the building and check to see if it breaks, if it doesn't go Up otherwise go down and repeat the process. It's a binary seach.

Sigiloso

8 de dez. de 2016

1000 if you put a parachute on it !

2

Sigiloso

29 de mai. de 2017

Any floor.... Because an egg can't crack floor.

1