You are viewing a single comment's thread. Return to all comments →
JS, Javascriipt solution:-
function hurdleRace(k, height) { const heighestHurdel = Math.max(...height); const doseNeeded = heighestHurdel - k; return doseNeeded > 0?doseNeeded:0; }
Seems like cookies are disabled on this browser, please enable them to open this website
The Hurdle Race
You are viewing a single comment's thread. Return to all comments →
JS, Javascriipt solution:-