Most easiest python code✅✅
\n\n# Approach\nIF LENGTH OF str = even \nwe need to sum first n//2 odd numbers\nwhich n//2 square\nand vice versa\n\n# Complexity\n- Time complexity:\nI think 
\n\n# Approach\nIF LENGTH OF str = even \nwe need to sum first n//2 odd numbers\nwhich n//2 square\nand vice versa\n\n# Complexity\n- Time complexity:\nI think it will be o(1)\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def minOperations(self, n: int) -> int:\n        if n%2==1:\n            return (n//2)*(n//2+1)\n        else:\n            return (n//2)**2\n```
['Math', 'Python', 'Python3']