[JAVA] 3 Liner 100% time 100% memory
\npublic int minOperations(int n) {\n        int mid = n / 2;\n        int steps=mid * (mid + n % 2);\n\t\treturn steps;\n    }\n\t
```\npublic int minOperations(int n) {\n        int mid = n / 2;\n        int steps=mid * (mid + n % 2);\n\t\treturn steps;\n    }\n```\t
[]