Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1389. Create Target Array in the Given Order
Given arrays nums and index, construct the target array by iterating i from 0..n-1 and inserting nums[i] at position index[i] (shifting elements to the right as needed) and return the resulting array; all insertions are guaranteed valid.
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.