Understandable code for beginners like me in python !!
\nclass Solution:\n    def minOperations(self, n: int) -> int:\n        if(n%2!=0):\n            n=n//2\n            return n*(n+1)\n        else:\n            
```\nclass Solution:\n    def minOperations(self, n: int) -> int:\n        if(n%2!=0):\n            n=n//2\n            return n*(n+1)\n        else:\n            n=n//2\n            return n**2\n```
['Array', 'Math', 'Python', 'Python3']