eggs.jpg

I’ve blogged about Technical Interview Questions before. I’m on the other end of the Interview process lately: giving interviews rather than getting them. Usually I enjoy asking a mix of technical questions and brainteasers.

Today’s puzzle (actually given in an interview today): “You have two hard eggs. But the question is ‘how hard are they?’ You have a 100 story building and only the two eggs, how would you find out which is the highest floor of the building you can drop the eggs from, before they break? It could be the 1st floor but it could also be the 99th floor—you must try dropping the eggs from different floors and see what happens. Your goal is to find the answer with the least number of egg drops.”

the egg drop solution