Computer scienceProgramming languagesJavaInterview preparationAlgorithms and problem solving techniques

Greedy algorithms

Steps to be greedy

Report a typo

Order the greedy approach steps. The top option is the first step.

Put the items in the correct order
Make a local optimal solution at the current step
Repeat the previous step until you reach the global optimal solution
Run trial tests with different inputs to make sure that greedy works for this problem
Check if it's possible to make a greedy choice.
___

Create a free account to access the full topic