Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit c323f34

Browse files
Create 0088_Merge_Sorted_Array.py
1 parent c6ffee1 commit c323f34

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Solution:
2+
def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None:
3+
for x in nums2:
4+
for y in range(len(nums1)):
5+
if nums1[y]==0:
6+
nums1[y]+=x
7+
break
8+
nums1.sort()

0 commit comments

Comments
 (0)