소프트웨어에 대한 모든 것

LeetCode 풀이 - 1929. Concatenation of Array 본문

알고리즘/LeetCode

LeetCode 풀이 - 1929. Concatenation of Array

앤테바 2021. 10. 16. 14:54
반응형

concatenation of Array

문제)

솔루션1)

class Solution:
    def getConcatenation(self, nums: List[int]) -> List[int]:
        return nums + nums

솔루션2)

class Solution:
    def getConcatenation(self, nums: List[int]) -> List[int]:
        return nums * 2
반응형
Comments