Question: What is the primary advantage of using dynamic programming over simple recursion?
Options:
Correct Answer: It avoids redundant calculations
Solution:
Dynamic programming avoids redundant calculations by storing the results of subproblems, which makes it more efficient than simple recursion.