Created
January 15, 2024 06:26
-
-
Save praveeng1618/ec1d5e0cf468f8898f978593d77ccf35 to your computer and use it in GitHub Desktop.
1929. Concatenation of Array Leetcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution: | |
def getConcatenation(self, nums: List[int]) -> List[int]: | |
for i in range(len(nums)): | |
nums.append(nums[i]) | |
return nums |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment