Egg Dropping Problem Memoization
Hard

Problem Statement

Use top-down memoization to optimize the recursive egg dropping solution, caching results for subproblems (E, F).

Examples

1Example 1
Input:
{ "E": 1, "F": 10 }
Output:
10
2Example 2
Input:
{ "E": 2, "F": 10 }
Output:
4
3Example 3
Input:
{ "E": 3, "F": 14 }
Output:
4
Loading...

Sign in to Run Code and Submit