Question d’entretien chez Cognizant

Difference between Greedy algorithm and dynamic.