Search⌘ K
AI Features

Split Array Into Two Arrays to Minimize Sum Difference

Split Array Into Two Arrays to Minimize Sum Difference divides an even-sized integer array into two equal groups and returns the smallest absolute difference between group sums, allowing negative values.

Statement

You are given an integer array, nums, consisting of ...