C # program to equally divide n elements into two sets such that second set has maximum distinct elements .
using System ; using System . Collections . Generic ; class GFG { static int distribution ( int [ ] arr , int n ) { HashSet < int > resources = new HashSet < int > ( ) ;