FunctionRacerProblemsRace

Concatenation of Array

BeginnerArraysPython, JavaScript, TypeScript, Java, C++

Return a new list that is nums followed by nums again, so its length is twice that of nums.

Example 1

nums [1,2,1]
returns [1,2,1,1,2,1]

[1, 2, 1, 1, 2, 1].

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More Arrays problems