• + 0 comments

    Java one line solution

    public static int hurdleRace(int k, List<Integer> height) {
            return Collections.max(height) <= k ? 0 : Collections.max(height) - k;
        }