How is this even a medium question? | 100% Faster solution
\nint minOperations(int n) {\n        int i = 0, j = n - 1, ans = 0;\n        while(i < j) {\n            ans += ((2 * j) - (2 * i)) / 2;\n            i++;\n   
```\nint minOperations(int n) {\n        int i = 0, j = n - 1, ans = 0;\n        while(i < j) {\n            ans += ((2 * j) - (2 * i)) / 2;\n            i++;\n            j--;\n        }\n        return ans;\n    }\n```
[]