please clarify the question ??
if array has { 12 -3 10 0 } then according to n/2
So for maximum array A contains ( 12,10 } and minimum contains {0 -3 } . please correct me
Dividing Array Problem
You have to find the maximum difference between the two So Array 1 sum = 22 and array 2 sum =-3
Difference = 22- (-3) = 25

This is the equation you have to use to maximise or minimise the value