According to the Oxford English Dictionary, “greedy” means having excessive desire for something without considering the effect or damage done. In computer science, a greedy algorithm is an algorithm that finds a solution to problems in the shortest …

» freeCodeCamp.org | freecodecamp.org