• + 0 comments

    TS Solution:

    function hurdleRace(k: number, height: number[]): number {
        // Write your code here
        return Math.max(Math.max(...height) - k, 0)
    }