You are viewing a single comment's thread. Return to all comments →
Here is my c++ solution, you can watch the explanation here : https://youtu.be/HTbex2B-Yas
int hurdleRace(int k, vector<int> height) { int mx = *max_element(height.begin(), height.end()); return max(0, mx-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 →
Here is my c++ solution, you can watch the explanation here : https://youtu.be/HTbex2B-Yas