Write the recursive method, equalSubsets(int[] nums, int start, int total1, int total2)
,
that, when called by the provided equalSubsets(int[] nums)
method,
returns true if it is possible to partition the values in nums
into two
subgroups whose sum of values are equal.
You may assume that nums
is not null.
Stuck? You may find these lessons helpful: