Skip to content
Related Articles
Open in App
Not now

Related Articles

Algorithms | Dynamic Programming | Question 2

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 23 Sep, 2018
Improve Article
Save Article

We use dynamic programming approach when
(A) We need an optimal solution
(B) The solution has optimal substructure
(C) The given problem can be reduced to the 3-SAT problem
(D) It’s faster than Greedy

Answer: (B)


Option (D) is incorrect because Greedy algorithms are generally faster than Dynamic programming. See

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!