You are viewing a single comment's thread. Return to all comments →
Java one line solution
public static int hurdleRace(int k, List<Integer> height) { return Collections.max(height) <= k ? 0 : Collections.max(height) - 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 →
Java one line solution