Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Algorithms Quiz | Dynamic Programming | Question 8

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

What happens when a top-down approach of dynamic programming is applied to any problem?
(A) It increases both, the time complexity and the space complexity
(B) It increases the space complexity and decreases the time complexity.
(C) It increases the time complexity and decreases the space complexity
(D) It decreases both, the time complexity and the space complexity


Answer: (B)

Explanation: As the mentioned approach uses the memoization technique it always stores the previously calculated values. Due to this, the time complexity is decreased but the space complexity is increased.

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Last Updated : 04 May, 2020
Like Article
Save Article
Similar Reads