Free考研资料

标题: Google Interview Puzzle : 2 Egg Problem [打印本页]

作者: admin    时间: 10-10-21 13:33
标题: Google Interview Puzzle : 2 Egg Problem
* You are given 2 eggs.
* You have access to a 100-story building.
* Eggs can be very hard or very fragile means it may break if dropped from the
first floor or may not even break if dropped from 100th floor.Both eggs are i
dentical.
* You need to figure out the highest floor of a 100-story building an egg can
be dropped without breaking.
* Now the question is how many drops you need to make. You are allowed to brea
k 2 eggs in the process




欢迎光临 Free考研资料 (http://tool.freekaoyan.com/) Powered by Discuz! X3.2