You are viewing a single comment's thread. Return to all comments →
Java 8
static int hurdleRace(int k, int[] height) { int max = Arrays.stream(height).max().orElse(0); return max>k?max-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 →
Java 8