Runtime: 0 ms, faster than 100.00% of C++ online submissions
\nclass Solution {\npublic:\n    int minOperations(int n) {\n        int c=0;\n            for(int i=0;i<n/2;i++)\n            {\n                c+=abs(2*i+1-n
```\nclass Solution {\npublic:\n    int minOperations(int n) {\n        int c=0;\n            for(int i=0;i<n/2;i++)\n            {\n                c+=abs(2*i+1-n);\n            }\n        return c;\n    }\n};\n```
[]