1920-build-array-from-permutation

DevGod
Vtuber
/** * @param {number[]} nums * @return {number[]} */var buildArray = function(nums) { ans = []; for(let a in nums){ ans[a] = nums[nums[a]]; } return ans;};
/** * @param {number[]} nums * @return {number[]} */var buildArray = function(nums) { ans = []; for(let a in nums){ ans[a] = nums[nums[a]]; } return ans;};