in this problem by looking at the sample test cases ,
division for min difference and for max difference will be different ?
because what i can see from the sample test case
for min diff : A=[-3,10] and B=[0,12]
for max diff: A=[-3,0] and B=[10,12]
but in problem the statement is saying that after dividing the array we can rearrange the array A with in A and same for array B .
so my doubt:
for both min diff and max diff the elements of A and B should not be change , but
here
for min diff : A=[-3,10] and B=[0,12]
for max diff: A=[-3,0] and B=[10,12]
array A contain different element in min diff and max diff case and same for B .
please clear my doubt

