write a function called
Code:
int partition(int arr[], int size)
which input an array of integers and decides whether
it is possible to divide the array into two groups
so the sums of both the groups will be equal.
Code:
for example arr = {1,2,2,3,5,6,1}
its could be divided into {2,2,6} and {1,1,3,5} both of their sums is 10
so they are equal and the function needs to return 1.
the function must be recursive without loops.
you are allowed to use only one external recursive function
there are 7! (groups in this example) that needs to be tested
what is the systematic way of doing this