Question: Which of the following statements is true about dynamic programming?
Options:
Correct Answer: It can be used for both optimization and counting problems
Solution:
Dynamic programming can be applied to both optimization and counting problems, making it versatile in problem-solving.