Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update: a simpler and more direct way
  • Loading branch information
Rian-Ismael authored Oct 28, 2024
commit c6cbe81f64d618cd87d08f238be07b4a7383de18
6 changes: 1 addition & 5 deletions python/1929-concatenation-of-array.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
class Solution:
def getConcatenation(self, nums: List[int]) -> List[int]:
ans = []
for i in range(2):
for n in nums:
ans.append(n)
return ans
return 2*nums