Skip to content

Commit 4f70832

Browse files
committed
2020-03-03
1 parent 1b3ebd8 commit 4f70832

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Solution(object):
2+
def merge(self, A, m, B, n):
3+
"""
4+
:type A: List[int]
5+
:type m: int
6+
:type B: List[int]
7+
:type n: int
8+
:rtype: None Do not return anything, modify A in-place instead.
9+
"""
10+
A[:] = sorted(A[:m] + B)

0 commit comments

Comments
 (0)