Which statement is correct? Dynamic programming
-
A
Occurs when two keys map to the same index
-
B
Finds a minimum spanning tree by adding the smallest edges without forming cycles
-
C
Solves problems by storing the solutions of overlapping subproblems
Correct answer
-
D
Is carried out using a stack
Correct answer
C. Solves problems by storing the solutions of overlapping subproblems
Explanation
Dynamic programming solves problems by storing the solutions of overlapping subproblems.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ