Open In App
Related Articles

Algorithms Quiz | Dynamic Programming | Question 8

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

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 04 May, 2020
Like Article
Save Article
Similar Reads