This page looks best with JavaScript enabled

Concatenation of Array

 ·  ☕ 1 min read  ·  ✍️ Syed Dawood

Problem

LeetCode 1929: Concatenation of Array

Solution

1
2
3
class Solution:
    def getConcatenation(self, nums: list[int]) -> list[int]:
        return nums + nums

Explaination

This is simplest and easiest problem on neetcode. If you are looking an explaination for this one, you may need to revisit basics of your programming language of choice.

Also see

Share on

ALLSYED
WRITTEN BY
Syed Dawood
< frontend | backend | fullstack > Developer