Ad
Code
Diff
  • public static class Kata 
    {
      public static int SameCase(char a, char b) =>
        (!(char.IsLetter(a) && char.IsLetter(b)))
          ? -1
        
        : (char.IsLower(a) == char.IsLower(b))
          ? 1
          : 0;
    }
    • public static class Kata
    • {
    • public static int SameCase(char a, char b) =>
    • (!char.IsLetter(a) || !char.IsLetter(b))
    • (!(char.IsLetter(a) && char.IsLetter(b)))
    • ? -1
    • : (char.IsLower(a) == char.IsLower(b))
    • ? 1
    • : 0;
    • }