← back to unit
Medium
# sorting medium
Who Improved the Most?
Everyone ran the race twice this season — who shaved off... no wait, who ADDED the most points? 📈
You get names, their before scores, and their after scores (three matching lines, one clear winner). Print the name of the biggest improver.
Example:
Input: names = ["mia", "leo", "kai"], before = [10, 40, 20], after = [30, 45, 50]
Output: kai
The improvements are 20, 5, 30 — kai's jump of 30 is the biggest.
💡 need a hint?
sort-most-improved.py🔒 given lines are locked — write your code in between
loading...