Algorithm Design: Greedy Algorithms
Learn about greedy algorithm design with the help of examples.
We'll cover the following
Greedy algorithms
Many algorithms are iterative procedures that choose among a number of alternatives at each iteration. For example, a cashier can view the Change Problem as a series of decisions they have to make: which coin (among denominations) to return first, which to return second, and so on. Some of these alternatives might lead to correct solutions, while others might not.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.