Super Easy || upvote if u like :)
\n\n# Code\n\nclass Solution {\n    public int minOperations(int[] nums) {\n        int step=0;\n        for(int i=1;i<nums.length;i++){\n            if(nums[i]
\n\n# Code\n```\nclass Solution {\n    public int minOperations(int[] nums) {\n        int step=0;\n        for(int i=1;i<nums.length;i++){\n            if(nums[i]<=nums[i-1]){\n            step+=Math.abs(nums[i]-nums[i-1])+1;\n            nums[i]=nums[i-1]+1;\n            }\n        }\n        return step;\n    }\n}\n```
['Java']