Cognizant Interview Question

Difference between Greedy algorithm and dynamic.