Introduction to Greedy Algorithms

Learn the Greedy approach to solving coding problems.

Greedy Algorithm

As the name suggests, a Greedy Algorithm always makes the choice that seems to be the best at that moment. This means that it makes a locally optimal choice in the hope that this choice will lead to a globally optimal solution.

How to decide which choice is optimal?

This algorithmic designing technique is mainly used to solve optimization problems. In ...