Programming/C#
[C#-Linq] List<int>에서 최빈값(mode) 구하기
비만오리
2018. 9. 20. 08:04
References
How to find the Mode in Array C#?
Sources
int mode = x.GroupBy(v => v).OrderByDescending(g => g.Count()).First().Key;
반응형