When can we use greedy algorithm?
Greedy algorithm can be used for the optimization it means when we want to maximize or minimize then then we use greedy algorithm. It provides the best case at every step and find the optimum way to solve any question.
Comments
Leave a comment