I have been trying to find most frequent words from a list of strings. I have tried something like Find the most occurring number in a List<int>
but issue is that it returns only one word, but all those words are required which are most frequent.
For example, if we call that LINQ query on following list:
Dubai
Karachi
Lahore
Madrid
Dubai
Sydney
Sharjah
Lahore
Cairo
it should result us in:
ans: Dubai, Lahore