You are viewing a single comment's thread. Return to all comments →
You can save some characters by calling ToLower() on the initial string instead of using Select:
Console.WriteLine(Console.ReadLine().ToLower().Where(Char.IsLetter).Distinct().Count() == 26 ? "pangram" : "not pangram");
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →
You can save some characters by calling ToLower() on the initial string instead of using Select: