Ezvor

1243. Array Transformation

EasyArray Preparing judge… LeetCode
ArraySimulation

Hints

Hint 1
Try to simulate the process.
Hint 2
For every iteration, find the new array using the old one and the given rules.