0

Consider a list of subject, grade pairs. E.g.
[("Latin", "A"), ("French", "A*"), ("Math", "B"), ("Latin", "A*")]
The task is to return a list of pairs that has each subject at most once. Where a subject occurred more than once originally, the returned list should have the highest grade.
Using ...