Domanda di colloquio di Cognizant

Difference between Greedy algorithm and dynamic.