Given a set of positive integer, divide in 2 set such that the average is same.

Given a set of positive integer, divide in 2 set such that the average is same.
 
Input :[1,2,3,5] 
Output:  {1,3} {2} 
Incase of no combinations : Print no possible solution found.

Author: SiddharthPolisiti
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer