ニュース

# one of the first string's permutations is the substring of the second string. # The input strings only contain lower case letters. # The length of both given strings is in range [1, 10,000].
function buildArray(nums: number[]): number[] { let result: number[] = []; for (let i: number = 0; i < nums.length; i++) { result[i] = nums[nums[i]]; } return result; }; 問題文をそのままコードにした。