• + 0 comments

    Solution in Java:

        int result = Collections.max(height) - k;
        return result > 0 ? result : 0;