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