본문 바로가기
python-algorithm

Leetcode 1929

by 무적김두칠 2021. 7. 12.

 

1
2
3
4
5
6
7
class Solution:
    def getConcatenation(self, nums: List[int]) -> List[int]:
        tmp=[]
        for i in range(2):
            for j in nums:
                tmp.append(j)
        return tmp
cs
반응형

'python-algorithm' 카테고리의 다른 글

Leetcode 1480. Running Sum of 1d Array  (0) 2021.07.12
Leetcode 1920  (0) 2021.07.12
백준 21300  (0) 2021.05.03
백준 8437  (0) 2021.05.03
[백준] 10480  (0) 2021.03.19

댓글