Ad
Code
Diff
  • bool isLeap(int year) {
      return ! (year & 3)  && (year % 100 || ! (year & 15));
    }
    • bool isLeap(int year) {
    • return (year&3) == 0 && (year % 100 != 0 || (year&15) == 0);
    • return ! (year & 3) && (year % 100 || ! (year & 15));
    • }