30 likes | 143 Views
In this problem, you have a 100-story building and 2 eggs, and your task is to determine the highest floor from which you can drop an egg without it breaking. If dropped from below this critical floor, the egg survives, while dropping from this floor or higher breaks it. To solve this efficiently, you need to minimize the number of drops required in the worst-case scenario. This guide explores step-by-step approaches, starting from simple solutions and progressing to more complex strategies that ensure finding the critical floor in the least number of attempts.
E N D
The 2 eggs problem (Google interview) • You have a 100-storie building, 2 eggs, and you are a busy man. Your goal is to find the highest floor from which you can still drop an egg without breaking it. Assume that if dropped from below that critical floor an egg always survives, while if dropped at or above – always breaks.
Approach step-by-step, from simples to more complex solutions.