fork download
  1. int wordFrequency = 10;
  2. string words = "hello how r u u u u u u u u u u u u u u u u u u ? hello there u u u u ! great to c u there. hello .hello hello hello hello hello .hello hello hello hello hello hello ";
  3.  
  4. var result = (from word in words.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)
  5. group word by word into g
  6. select new { Word = g.Key, Occurance = g.Count() }).ToList().FindAll(i => i.Occurance >= wordFrequency);
Runtime error #stdin #stdout 0.01s 4980KB
stdin
5 23 45 43 82 143 3
stdout
Standard output is empty