Algorithm · Atlassian · Easy
In a Formula 1 race every driver completes the same number of laps. You receive a list of driver names drivers and a 2D list lapTimes where lapTimes[i][j] is the time in seconds for the i-th driver on the j-th lap. The laps are recorded in order and every driver has the same lap count. A driver's last-lap improvement measures how much faster their final lap was compared to their own average pace across all earlier laps. Concretely: compute the average of all laps except the…
Checking your access…