You are viewing a single comment's thread. Return to all comments →
TypeScript:
function hurdleRace(k: number, height: number[]): number { return Math.max(height.sort((a, b) => b - a)[0] - k, 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 →
TypeScript: