[algogeeks] Array problem

2012-11-21 Thread Ansum Baid
This question has been taken from codeforces.com. Any idea how to solve this ? Polycarpus has an array, consisting of *n* integers *a*1, *a*2, ..., *a**n*. Polycarpus likes it when numbers in an array match. That's why he wants the array to have as many equal numbers as possible. For that

Re: [algogeeks] Array problem

2012-11-21 Thread Ansum Baid
numbers can be made equal. Dave On Wednesday, November 21, 2012 12:18:54 PM UTC-6, Ansum Baid wrote: This question has been taken from codeforces.com. Any idea how to solve this ? Polycarpus has an array, consisting of *n* integers *a*1, *a*2, ..., *a** n*. Polycarpus likes it when numbers