C++ One liner 🔥🔥 || CONSTANT TIME O(1) || BEATS 100%
\nclass Solution {\npublic:\n    int minOperations(int n) {\n\n        return n % 2? (n/2) * ((n/2)+1) : (n/2) * (n/2);\n\n    }\n};\n
```\nclass Solution {\npublic:\n    int minOperations(int n) {\n\n        return n % 2? (n/2) * ((n/2)+1) : (n/2) * (n/2);\n\n    }\n};\n```
['Math', 'C++']