References


How to find the Mode in Array C#? 




Sources


int mode = x.GroupBy(v => v).OrderByDescending(g => g.Count()).First().Key;

반응형

+ Recent posts