## # @param A int整型一维数组 # @param B int整型一维数组 # @return void#classSolution:defmerge(self,A,m,B,n):# write code here i, j = m -1, n -1 p = m + n -1while i >=0and j >=0:if A[i]> B[j]: A[p]= A[i] i -=1else: A[p]= B[j] j -=1 p -=1while j >=0: A[p]= B[j] j -=1 p -=1