[LeetCode] 1920. Build Array from Permutation
Python
class Solution:
def buildArray(self, nums: List[int]) -> List[int]:
answer = []
for i in nums:
answer.append(nums[i])
return answer
class Solution:
def buildArray(self, nums: List[int]) -> List[int]:
answer = []
for i in nums:
answer.append(nums[i])
return answer
댓글남기기