C++| 100% faster solution| one lline code |easy implementation
class Solution {\npublic:\n    int minOperations(int n) {\n        return (n/2)*(n-(n/2));\n    }\n};\nyou can easily understand it by exploring this deduction\
class Solution {\npublic:\n    int minOperations(int n) {\n        return (n/2)*(n-(n/2));\n    }\n};\nyou can easily understand it by exploring this deduction\nyou can try like this\nforex. n=6\n1    +5=6\n3    +3=6\n5    +1=6\n7     -1=6\n9     -3=6\n11   -5=6
['Math', 'C++']