oldhowl

Untitled

Mar 10th, 2020
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  internal class Program
  2.     {
  3.         private static string text = "maaiiiizzzzzzz";
  4.  
  5.  
  6.         public static void Main(string[] args)
  7.         {
  8.             var t = (from c in text.ToArray()
  9.                 group c by c
  10.                 into groupFreq
  11.                 select groupFreq).OrderByDescending(x => x.Count()).First();
  12.  
  13.             Console.WriteLine(t.Key);
  14.            
  15.         }
  16.     }
RAW Paste Data