You are given an integer n, representing the length of an array arr where arr[i] = (2 \cdot i) + 1 for all i n.
In a single operation, you can choose two indices x and y such that x, y n, decrement arr[x] by arr[y] by
Return the minimum number of operations required to make all elements of arr equal.
Constraints:
n
You are given an integer n, representing the length of an array arr where arr[i] = (2 \cdot i) + 1 for all i n.
In a single operation, you can choose two indices x and y such that x, y n, decrement arr[x] by arr[y] by
Return the minimum number of operations required to make all elements of arr equal.
Constraints:
n