Question d’entretien chez Pocket Gems

Greedy related algorithm question