• + 0 comments

    JavaScript

    function hurdleRace(k, height) {
        // Write your code here
        let maxHeight = Math.max(...height);
        
           return maxHeight > k ? maxHeight - k : 0
    }