Explain the concept of memoization in dynamic programming.
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Explain memoization in dynamic programming: what gets cached, when the cache is used, and how it changes the running time of a recursive algorithm. Tests overlapping subproblems, complexity analysis, the comparison with bottom-up tabulation and choosing a correct cache key.