2016. Maximum Difference Between Increasing Elements
int ans=0;\n        int min=nums[0];\n        for(int i=1;inums[i])\n                min=nums[i];\n            if(ans<(nums[i]-min))\n                ans=nums[i
int ans=0;\n        int min=nums[0];\n        for(int i=1;i<nums.size();i++)\n        {\n            if(min>nums[i])\n                min=nums[i];\n            if(ans<(nums[i]-min))\n                ans=nums[i]-min;\n        }\n        if(ans==0)\n            return -1;\n        return ans;
['Array', 'C']