Coding test/programmers - single
[leetcode] 88. Merge Sorted Array
engine
2022. 4. 3. 12:26
class Solution:
def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None:
"""
Do not return anything, modify nums1 in-place instead.
"""
del nums1[m:]
nums1 += nums2[0:n]
nums1.sort()