Skip to content

Commit 17d4b2d

Browse files
authored
Create 1929-concatenation-of-array.py
1 parent 57f4ad2 commit 17d4b2d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/1929-concatenation-of-array.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Solution:
2+
def getConcatenation(self, nums: List[int]) -> List[int]:
3+
ans = []
4+
for i in range(2):
5+
for n in nums:
6+
ans.append(n)
7+
return ans

0 commit comments

Comments
 (0)