@@ -0,0 +1,422 @@
+package leetcode;%0A%0A/**%0A * https://leetcode.com/problems/maximum-difference-between-increasing-elements/%0A */%0Apublic class Problem2016 %7B%0A    public int maximumDifference(int%5B%5D nums) %7B%0A        int answer = 0;%0A        int min = Integer.MAX_VALUE;%0A        for (int num : nums) %7B%0A            min = Math.min(min, num);%0A            answer = Math.max(answer, num - min);%0A        %7D%0A        return answer == 0 ? -1 : answer;%0A    %7D%0A%7D%0A

Solve problem 2016