Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can you find how many operations are needed to make the first element of the array equal to the last element?
Notice that you can use the same idea of the previous hint to make the second element equal to the second last one.
Use the same idea until all elements of the array are used.