C++||Faster than 100%
\nclass Solution {\npublic:\n    int minOperations(int n) {\n     int count=0;\n        int i=0,j=n-1;\n        while(i<j)\n        {\n            count=count+(
```\nclass Solution {\npublic:\n    int minOperations(int n) {\n     int count=0;\n        int i=0,j=n-1;\n        while(i<j)\n        {\n            count=count+((2*j+1) -(2*i+1))/2;\n            i++;\n            j--;\n        }\n        return count;\n    }\n};\n```
['C', 'C++']