0 ms || FAST SOLUTION || 2 Lines OF code || c++
\nclass Solution {\npublic:\n    int minOperations(int n) {\n        int mid = n/2;\n        return n%2 == 0 ? mid*mid : mid*(mid+1);\n    }\n};\n
```\nclass Solution {\npublic:\n    int minOperations(int n) {\n        int mid = n/2;\n        return n%2 == 0 ? mid*mid : mid*(mid+1);\n    }\n};\n```
['Math', 'C']