You are viewing a single comment's thread. Return to all comments →
my solution in c#
public static int equalizeArray(List<int> arr) { return arr.Count() - arr.GroupBy(o => o).Max(group => group.Count()); }
Seems like cookies are disabled on this browser, please enable them to open this website
Equalize the Array
You are viewing a single comment's thread. Return to all comments →
my solution in c#