public static void Main()
Console.WriteLine(IsPangram("Raw Danger! (Zettai Zetsumei Toshi 2) for the PlayStation 2 is a bit queer, but an alright game I guess, uh... CJ kicks and vexes Tenpenny precariously? This should be a pangram now, probably."));
var foo = "Raw Danger! (Zettai Zetsumei Toshi 2) for the PlayStation 2 is a bit queer, but an alright game I guess, uh... CJ kicks and vexes Tenpenny precariously? This should be a pangram now, probably.";
var foo2 = foo.GroupBy(c => c).Select(l => char.ToLower(l.First())).Where( s => s > 96 && s < 123).OrderBy(x => x);
Console.WriteLine(foo2.Count());
public static bool IsPangram(string str)
if(string.IsNullOrEmpty(str)) return false;
return str.GroupBy(c => c).Select(l => char.ToLower(l.FirstOrDefault())).Where( s => s > 96 && s < 123).Count() == 26 ? true : false;