Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
715 views

 

What is the main difference between the greedy approach and dynamic programming in terms of usage?

 

From what I understand, the greedy method may provide an optimal solution in some situations, while dynamic programming is able to yield an optimal solution in others.

Thanks.

in Competitive-Programming by Expert (500 points) | 715 views

Please log in or register to answer this question.