📅  最后修改于: 2022-03-11 15:03:22.009000             🧑  作者: Mango
// 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;
}
}