TP3 Correct Greedy Algorithm - Accuracy: 81%