HTMLify

LeetCode - Create Target Array in the Given Order - Python
Views: 180 | Author: abh
class Solution:
    def createTargetArray(self, nums: List[int], index: List[int]) -> List[int]:
        target = []
        for n, i in zip(nums, index):
            target.insert(i, n)
        return target
        

Comments