Ad
Code
Diff
  • using System.Linq;
    
    public class Kata
    {
      public static bool IsIsogram(string word) 
        {
            var numberOfUniqueLetters = word.ToLower().Distinct().Count();
            var areAllLettersUnique = word.Length == numberOfUniqueLetters;
            return areAllLettersUnique;
        }
    }
    • using System.Linq;
    • public class Kata
    • {
    • public static bool IsIsogram(string str) => str.Length == str.ToLower().Distinct().Count();
    • public static bool IsIsogram(string word)
    • {
    • var numberOfUniqueLetters = word.ToLower().Distinct().Count();
    • var areAllLettersUnique = word.Length == numberOfUniqueLetters;
    • return areAllLettersUnique;
    • }
    • }