Algorithm · Square · Medium
You receive a list of races, where an individual race is a list of rider names ordered from first place (index 0) down to last place. Riders score points per race according to their finishing position: 1st place: 15 points 2nd place: 10 points 3rd place: 5 points 4th place or lower: 0 points After every race, compute the overall standings by totaling every rider's points accumulated so far. The standings must be sorted in descending order by total points. Whenever two or…
Checking your access…