You are viewing a single comment's thread. Return to all comments →
int hurdleRace(int k, vector height) { auto result = std::max_element(height.begin(), height.end()); if(k > *result) return 0; return *result - k; }
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 →
int hurdleRace(int k, vector height) { auto result = std::max_element(height.begin(), height.end()); if(k > *result) return 0; return *result - k; }