Question: What is the main idea behind dynamic programming?
Options:
Correct Answer: To break problems into smaller subproblems and store their solutions
Solution:
Dynamic programming involves breaking a problem into smaller subproblems, solving each subproblem just once, and storing their solutions to avoid redundant computations.