You are viewing a single comment's thread. Return to all comments →
JavaScript Solution:
let min = scores[0] let max = scores[0] let fmin = 0; let fmax = 0; scores.forEach((score) => { if (score < min) { fmin += 1 min = score } else if (score > max) { fmax += 1 max = score } }) return [fmax, fmin] }
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
JavaScript Solution: