Search
⌘K

Leetcode 2635. Apply Transform Over Each Element in Array

Return a new array where each element is the result of applying a provided mapping function to the corresponding input element and its index, i.e., returnedArray[i] = fn(arr[i], i). Solve by manually iterating (no Array.map); handle empty arrays and up to 1000 elements.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.