Skip to content

1920-build-array-from-permutation

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