Calculating the total sum of the elements in the array. If the total sum is odd, then it's impossible to partition the array into two equal subsets (since two equal subsets would each need to sum to ...