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
Hi, I'm a new beginner for Python. I just want to know why
will not return correct order?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.