Answers for "the hurdle race hackerrank solution in javascript"

0

the hurdle race hackerrank solution in javascript

// the hurdle race hackerrank solution in javascript
function hurdleRace(k, height) {
    // Write your code here
    let max = Math.max(...height);
    console.log(max);
    if((max - k) > 0){
        return (max - k);
    }else{
        return 0;
    }
}
Posted by: Guest on December-30-2021

Code answers related to "the hurdle race hackerrank solution in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language