Dynamic Programming In Data Structures - Study Mode
[#161] In the context of Dynamic Programming, what does the term "memoization" refer to?
Correct Answer
(C) Storing intermediate results to avoid redundant calculations.
[#162] Which of the following is a classic example of a problem that uses Dynamic Programming for optimization?
Correct Answer
(D) Knapsack Problem
[#163] In Dynamic Programming, what does the term "optimal substructure" mean?
Correct Answer
(A) The solution to a problem can be constructed from the solutions to its subproblems.
[#164] What is the time complexity of the naive recursive solution for the Fibonacci sequence?
Correct Answer
(D) O(2 n )
[#165] How does Dynamic Programming differ from Greedy algorithms?
Correct Answer
(C) DP considers all possible solutions and builds up to the optimal solution.