• + 0 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]
    }