Egg Dropping Puzzle
In the egg drop problem, you have N eggs and you want to determine from which floors in a K floor building you can drop an egg such that is doesn't break. You are to determine the minimum number of attempts you need in order to find the critical floor in the worst case while using the best strategy.
Rules:
  • An egg that survives a fall can be used again.
  • A broken egg must be discarded.
  • The effect of a fall is the same for all eggs.
  • If an egg breaks when dropped, then it would break if dropped from a higher floor.
  • If an egg survives a fall then it would survive a shorter fall.
  • Input
    Time Complexity
    Brute Force :
    Dynamic Programming :