Search⌘ K
AI Features

Concatenation of Array

Concatenation of Array builds a new array by placing the given integer array twice in succession, preserving every value and its original order.

Statement

Given an integer array nums of length n, construct an array ans of length 2n2n such that ans[i] == nums[i] and ans[i + n] == nums[i] for 0≤0 \leq ...