📌  相关文章
📜  javascript代码示例中的跨栏比赛hackerrank解决方案

📅  最后修改于: 2022-03-11 15:03:22.009000             🧑  作者: Mango

代码示例1
// 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;
    }
}