Maximum Difference Between Increasing Elements || JAVA || Easiest Approach 🔥✅
Code\n\nclass Solution {\n    public int maximumDifference(int[] nums) {\n    int max=0;\n    for(int i=0;i<nums.length;i++)\n    {\n        for(int j=i+1;j<num
# Code\n```\nclass Solution {\n    public int maximumDifference(int[] nums) {\n    int max=0;\n    for(int i=0;i<nums.length;i++)\n    {\n        for(int j=i+1;j<nums.length;j++)\n        {\n            max=Math.max(max,nums[j]-nums[i]);\n        }\n    }\n    return max>0?max:-1;    \n    }\n}\n```
['Array', 'Java']