You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an array of judge scores and optional penalties, calculate the final score for a figure skating routine.
5
+
6
+
The first argument is an array of 10 judge scores, each a number from 0 to 10. Remove the highest and lowest judge scores and sum the remaining 8 scores to get the base score.
7
+
8
+
Any additional arguments passed to the function are penalties. Subtract all penalties from the base score to get the final score.
0 commit comments