Given a zero-based permutation nums (0-indexed), build an array ans of the same length where ans[i] = nums[nums[i]] for each 0 { return nums.map(num => nums[num]) } Colored by Color Scripter cs 문제를 풀며 느낀 점 - 처음에 문제 자체가 정말 이해가 안 되었는데 map() 함수에 대해서 먼저 자세하게 알아보았습니다. map()은 새로운 배열에 앞에서부터 차례대로 push 해주는 함수라서 nums = [0, 2, 1, 5, 3, 4] 일 때 nums[num] 첫 번째는 nums배열의 0번째 index의 값이 들어가고, 두 번째로는 nums[2] 값이 들어..