You are viewing a single comment's thread. Return to all comments →
public static int hurdleRace(int k, List<Integer> height) { // Write your code here int potion = 0; for(Integer obs : height){ potion = (obs > k) ? (potion < (obs - k)) ? obs - k : potion : potion; } return potion; }
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 →