...基于排列构建数组(Build Array from Permutation) - Dennis-Chen...
从0 开始的排列nums是一个由0到nums.length - 1(0和nums.length - 1也包含在内)的不同整数组成的数组。 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 <= i < nums.length and return it. A zero-based...