题解 | #合并两个有序的数组#
合并两个有序的数组
http://www.nowcoder.com/practice/89865d4375634fc484f3a24b7fe65665
我不管,就算你后台限制了,我就是要耍赖!!
#
#
# @param A int整型一维数组
# @param B int整型一维数组
# @return void
#
class Solution:
def merge(self , A, m, B, n):
for i in range(m,m+n):
A[i]=B[i-m]
C=sorted(A)
for i in range(len(C)):
A[i]=C[i]
return A