Question: What is the main characteristic of a problem that can be solved using dynamic programming?
Options:
Correct Answer: It has optimal substructure
Solution:
A problem that can be solved using dynamic programming must have optimal substructure, meaning the optimal solution can be constructed from optimal solutions of its subproblems.