Problem 2635 · Easy

Apply Transform Over Each Element in Array

Build a new array by applying a transform to every element together with its index. The visual sample transform is twice the value plus the index.

Open the interactive visualisation