What is Greedy algorithm?
An algorithm design method that builds a solution by repeatedly picking the choice that looks best at that moment, without revisiting earlier choices. It is fast and simple, but it gives an optimal solution only when the problem has special properties, as with coin systems like Japan's or Kruskal's algorithm for minimum spanning trees.
Japanese name: 貪欲法
Greedy algorithm appears in 2 practice questions across 1 topic, including Data Structures and Algorithms.