Question: What is the main difference between dynamic programming and divide and conquer?
Options:
Correct Answer: Dynamic programming solves problems with overlapping subproblems
Solution:
The main difference is that dynamic programming is used for problems with overlapping subproblems, while divide and conquer is used for problems that can be broken into independent subproblems.