Full Accuracy python3
\n\n# Find difference between two elements and add 1\n\nclass Solution(object):\n    def minOperations(self, nums):\n        count = current= 0\n        for n i
\n\n# Find difference between two elements and add 1\n```\nclass Solution(object):\n    def minOperations(self, nums):\n        count = current= 0\n        for n in nums:\n            if n <= current:\n                current += 1\n                count += current - n\n            else:\n                current = n\n        return count\n  #please upvote me it would encourage me alot\n\n        \n```\n# please upvote me it would encourage me alot\n
['Python']