```
class Solution:
# @param A a list of integers
# @param m an integer, length of A
# @param B a list of integers
# @param n an integer, length of B
# @return nothing(void)
def merge(self, A, m, B, n):
x=A[0:m]
y=B[0:n]
x.extend(y)
x.sort()
A[0:m+n]=x
```