Saturday morning puzzle
You might have heard various variations of this problem before.
You have 2 ostrich eggs in your hand (fairly hard shells) and you are in front of a 50 story building. The basic challenge is to figure out which is the floor from and above which the eggs will break on impact to the ground when you drop them from a window of that floor. Of course, this can be done with only one egg. You start with first floor – if it does not break, go to second floor. And keep doing this till you find the floor where it does break. The minimum number of tries you will need to guarantee finding out that floor is 50. (Basically, in the worst case, you have to keep trying all the way to the top)
But you have 2 eggs. Now, the challenge is to find out the minimum number of tries with which you can guarantee finding out that threshold floor at or above which an egg will break (one try means one dropping of an egg). Needless to say, once an egg breaks, you cannot use it again.