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