Concatenation of Array
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
1 <= len(nums) <= 50-100 <= nums[i] <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More Arrays problems
- Deal Into PilesBeginner
- Decompress a Pair ListBeginner
- Find the Highest AltitudeBeginner
- Groups of KBeginner
- Items Within BudgetBeginner
- Kids With the Most CandiesBeginner
- Largest At Least Twice OthersBeginner
- Longest Increasing RunBeginner