So What is Greedy algorithm->

When we have many solutions for a single problem but we have to find the best of them then
what will a simple human being do?

Just think the resources that you have, the result you have, and pick the best one from them, and that's is the greedy algorithm


Example:- Suppose if you want to go to a general store and there are 3 shops in your area and the distance of these shops from your house are 2km,5km,500m respectively,
then which one will you choose








Want to know more about greedy