# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# ## 2020년 6월 14일 일요일
# ### leetCode - Merge Sorted Array (Python)
# ### 문제 : https://leetcode.com/problems/merge-sorted-array/
# ### 블로그 : https://somjang.tistory.com/entry/leetCode-88-Merge-Sorted-Array-Python

# ### 첫번째 시도

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()

StarcoderdataJupyterScriptsDedupFiltered