2 Eggs 100 Floors Answer
Drop egg from the 50st.
2 eggs 100 floors answer. You are given two eggs and access to a 100 storey building. 4 we first try from 4 th floor. You have access to a 100 storey building. Given 2 eggs and k floors find the minimum number of trials needed in worst case.
One of the floors is the highest floor an egg can be dropped from without breaking. 2 eggs 100 floors worst case solution. If egg 1 breaks at floor 4 answer is 3 if not go to floor 6. If the egg breaks the nth floor is between 49 and 2 if not we know the nth floor is between 51 and 99 we know the egg will not break if dropped from the first floor because it is the minimum distance you can drop the egg and we know that the egg will break at floor 100 the maximum distance you can drop the egg.
Let s talk about the 2 egg problem courtesy of interview cake. K 10 output. This problem is a specific case of n eggs and k floors. 14 is the least number of tries to find out.
The solution for the worst case in this scenario occurs when the threshold floor is floor number 14 because we will drop the first egg on floor 14 and it will break. You need to figure out the highest floor of a 100 storey building an egg can be dropped without breaking. You need to find the minimum floor where the egg breaks. You are given 2 eggs and you are in a building with 100 floors.
A building has 100 floors. 2 eggs 100 floors. Then we have to test floors 1 13 with the 2nd egg to see where the egg breaks again and the egg will not break on any of those floors. Two results break or not.
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 100 th floor both eggs are identical. You are given 2 eggs. Suppose that we wish to know which stories in a 100 story building are safe to drop eggs from and which will cause the eggs to break on landing. Both eggs are identical.
The following is a description of the instance of this famous puzzle involving 2 eggs and a building with 100 floors. The solution for the worst case in this scenario occurs when the threshold floor is floor number 14 because we will drop the first egg on floor 14 and it will break. If an egg is dropped and does not break it is undamaged and can be dropped again. And you need to find it in a way suc.