Fastest(?) way to find most frequent element of IEnumerable<int>
You can download an example project from this GitHub repository.
Task interview...
My friend got an interview task to code a method that finds and returns the most frequent element in a large list of integers. If two elements are found, null is retur...
krystianzakrys.hashnode.dev5 min read
Mark Cooke
.NET developer
I would not take a job where they ask such questions. Because in a business, it's almost always better to go with the cleanest and most maintainable solution, not the most performant. If I had been asked this question, my first response would be "Why does this need to be performant?" Junior developers blindly write code without knowing why something needs to be done a certain way.