Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.