Skip to content

Commit

Permalink
array concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
sujin-sreekumaran committed Jan 18, 2024
1 parent 7755fd2 commit 0bf6f22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions problems/leetcode_1929.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Solution:
def getConcatenation(self, nums: List[int]) -> List[int]:
ans = []

for i in range(2):
for number in nums:
ans.append(number)
return ans

0 comments on commit 0bf6f22

Please sign in to comment.